Skip to content

Commit 3d2ee93

Browse files
committed
Deploying to master from @ gfx-rs/wgpu@2587db1 🚀
1 parent c2316ac commit 3d2ee93

File tree

266 files changed

+1171
-1203
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

266 files changed

+1171
-1203
lines changed

doc/naga/compact/fn.compact.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="Remove unused types, expressions, and constants from `module`."><title>compact in naga::compact - Rust</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2"><link rel="stylesheet" href="../../static.files/normalize-76eba96aa4d2e634.css"><link rel="stylesheet" href="../../static.files/rustdoc-804b98a1284a310a.css"><meta name="rustdoc-vars" data-root-path="../../" data-static-root-path="../../static.files/" data-current-crate="naga" data-themes="" data-resource-suffix="" data-rustdoc-version="1.76.0-nightly (445177724 2023-12-16)" data-channel="nightly" data-search-js="search-874d56868bf05518.js" data-settings-js="settings-4313503d2e1961c2.js" ><script src="../../static.files/storage-f2adc0d6ca4d09fb.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../static.files/main-305769736d49e732.js"></script><noscript><link rel="stylesheet" href="../../static.files/noscript-feafe1bb7466e4bd.css"></noscript><link rel="alternate icon" type="image/png" href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link rel="alternate icon" type="image/png" href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link rel="icon" type="image/svg+xml" href="../../static.files/favicon-2c020d218678b618.svg"></head><body class="rustdoc fn"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle">&#9776;</button></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../naga/index.html">naga</a><span class="version">23.0.0</span></h2></div><div class="sidebar-elems"><h2><a href="index.html">In naga::compact</a></h2></div></nav><div class="sidebar-resizer"></div>
2-
<main><div class="width-limiter"><nav class="sub"><form class="search-form"><span></span><div id="sidebar-button" tabindex="-1"><a href="../../naga/all.html" title="show sidebar"></a></div><input class="search-input" name="search" aria-label="Run search in the documentation" autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"><div id="help-button" tabindex="-1"><a href="../../help.html" title="help">?</a></div><div id="settings-menu" tabindex="-1"><a href="../../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section id="main-content" class="content"><div class="main-heading"><h1>Function <a href="../index.html">naga</a>::<wbr><a href="index.html">compact</a>::<wbr><a class="fn" href="#">compact</a><button id="copy-path" title="Copy item path to clipboard"><img src="../../static.files/clipboard-7571035ce49a181d.svg" width="19" height="18" alt="Copy item path"></button></h1><span class="out-of-band"><a class="src" href="../../src/naga/compact/mod.rs.html#32-262">source</a> · <button id="toggle-all-docs" title="collapse all docs">[<span>&#x2212;</span>]</button></span></div><pre class="rust item-decl"><code>pub fn compact(module: &amp;mut <a class="struct" href="../struct.Module.html" title="struct naga::Module">Module</a>)</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Remove unused types, expressions, and constants from <code>module</code>.</p>
2+
<main><div class="width-limiter"><nav class="sub"><form class="search-form"><span></span><div id="sidebar-button" tabindex="-1"><a href="../../naga/all.html" title="show sidebar"></a></div><input class="search-input" name="search" aria-label="Run search in the documentation" autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"><div id="help-button" tabindex="-1"><a href="../../help.html" title="help">?</a></div><div id="settings-menu" tabindex="-1"><a href="../../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section id="main-content" class="content"><div class="main-heading"><h1>Function <a href="../index.html">naga</a>::<wbr><a href="index.html">compact</a>::<wbr><a class="fn" href="#">compact</a><button id="copy-path" title="Copy item path to clipboard"><img src="../../static.files/clipboard-7571035ce49a181d.svg" width="19" height="18" alt="Copy item path"></button></h1><span class="out-of-band"><a class="src" href="../../src/naga/compact/mod.rs.html#32-238">source</a> · <button id="toggle-all-docs" title="collapse all docs">[<span>&#x2212;</span>]</button></span></div><pre class="rust item-decl"><code>pub fn compact(module: &amp;mut <a class="struct" href="../struct.Module.html" title="struct naga::Module">Module</a>)</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Remove unused types, expressions, and constants from <code>module</code>.</p>
33
<p>Assuming that all globals, named constants, special types,
44
functions and entry points in <code>module</code> are used, determine which
55
types, constants, and expressions (both function-local and global

doc/naga/compact/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `compact` mod in crate `naga`."><title>naga::compact - Rust</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2"><link rel="stylesheet" href="../../static.files/normalize-76eba96aa4d2e634.css"><link rel="stylesheet" href="../../static.files/rustdoc-804b98a1284a310a.css"><meta name="rustdoc-vars" data-root-path="../../" data-static-root-path="../../static.files/" data-current-crate="naga" data-themes="" data-resource-suffix="" data-rustdoc-version="1.76.0-nightly (445177724 2023-12-16)" data-channel="nightly" data-search-js="search-874d56868bf05518.js" data-settings-js="settings-4313503d2e1961c2.js" ><script src="../../static.files/storage-f2adc0d6ca4d09fb.js"></script><script defer src="../sidebar-items.js"></script><script defer src="../../static.files/main-305769736d49e732.js"></script><noscript><link rel="stylesheet" href="../../static.files/noscript-feafe1bb7466e4bd.css"></noscript><link rel="alternate icon" type="image/png" href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link rel="alternate icon" type="image/png" href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link rel="icon" type="image/svg+xml" href="../../static.files/favicon-2c020d218678b618.svg"></head><body class="rustdoc mod"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle">&#9776;</button></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../naga/index.html">naga</a><span class="version">23.0.0</span></h2></div><h2 class="location"><a href="#">Module compact</a></h2><div class="sidebar-elems"><section><ul class="block"><li><a href="#functions">Functions</a></li></ul></section><h2><a href="../index.html">In crate naga</a></h2></div></nav><div class="sidebar-resizer"></div>
2-
<main><div class="width-limiter"><nav class="sub"><form class="search-form"><span></span><div id="sidebar-button" tabindex="-1"><a href="../../naga/all.html" title="show sidebar"></a></div><input class="search-input" name="search" aria-label="Run search in the documentation" autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"><div id="help-button" tabindex="-1"><a href="../../help.html" title="help">?</a></div><div id="settings-menu" tabindex="-1"><a href="../../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section id="main-content" class="content"><div class="main-heading"><h1>Module <a href="../index.html">naga</a>::<wbr><a class="mod" href="#">compact</a><button id="copy-path" title="Copy item path to clipboard"><img src="../../static.files/clipboard-7571035ce49a181d.svg" width="19" height="18" alt="Copy item path"></button></h1><span class="out-of-band"><a class="src" href="../../src/naga/compact/mod.rs.html#1-379">source</a> · <button id="toggle-all-docs" title="collapse all docs">[<span>&#x2212;</span>]</button></span></div><h2 id="functions" class="section-header"><a href="#functions">Functions</a></h2><ul class="item-table"><li><div class="item-name"><a class="fn" href="fn.compact.html" title="fn naga::compact::compact">compact</a></div><div class="desc docblock-short">Remove unused types, expressions, and constants from <code>module</code>.</div></li></ul></section></div></main></body></html>
2+
<main><div class="width-limiter"><nav class="sub"><form class="search-form"><span></span><div id="sidebar-button" tabindex="-1"><a href="../../naga/all.html" title="show sidebar"></a></div><input class="search-input" name="search" aria-label="Run search in the documentation" autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"><div id="help-button" tabindex="-1"><a href="../../help.html" title="help">?</a></div><div id="settings-menu" tabindex="-1"><a href="../../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section id="main-content" class="content"><div class="main-heading"><h1>Module <a href="../index.html">naga</a>::<wbr><a class="mod" href="#">compact</a><button id="copy-path" title="Copy item path to clipboard"><img src="../../static.files/clipboard-7571035ce49a181d.svg" width="19" height="18" alt="Copy item path"></button></h1><span class="out-of-band"><a class="src" href="../../src/naga/compact/mod.rs.html#1-355">source</a> · <button id="toggle-all-docs" title="collapse all docs">[<span>&#x2212;</span>]</button></span></div><h2 id="functions" class="section-header"><a href="#functions">Functions</a></h2><ul class="item-table"><li><div class="item-name"><a class="fn" href="fn.compact.html" title="fn naga::compact::compact">compact</a></div><div class="desc docblock-short">Remove unused types, expressions, and constants from <code>module</code>.</div></li></ul></section></div></main></body></html>

doc/src/naga/compact/mod.rs.html

Lines changed: 0 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -354,30 +354,6 @@
354354
<a href="#353" id="353">353</a>
355355
<a href="#354" id="354">354</a>
356356
<a href="#355" id="355">355</a>
357-
<a href="#356" id="356">356</a>
358-
<a href="#357" id="357">357</a>
359-
<a href="#358" id="358">358</a>
360-
<a href="#359" id="359">359</a>
361-
<a href="#360" id="360">360</a>
362-
<a href="#361" id="361">361</a>
363-
<a href="#362" id="362">362</a>
364-
<a href="#363" id="363">363</a>
365-
<a href="#364" id="364">364</a>
366-
<a href="#365" id="365">365</a>
367-
<a href="#366" id="366">366</a>
368-
<a href="#367" id="367">367</a>
369-
<a href="#368" id="368">368</a>
370-
<a href="#369" id="369">369</a>
371-
<a href="#370" id="370">370</a>
372-
<a href="#371" id="371">371</a>
373-
<a href="#372" id="372">372</a>
374-
<a href="#373" id="373">373</a>
375-
<a href="#374" id="374">374</a>
376-
<a href="#375" id="375">375</a>
377-
<a href="#376" id="376">376</a>
378-
<a href="#377" id="377">377</a>
379-
<a href="#378" id="378">378</a>
380-
<a href="#379" id="379">379</a>
381357
</pre></div><pre class="rust"><code><span class="kw">mod </span>expressions;
382358
<span class="kw">mod </span>functions;
383359
<span class="kw">mod </span>handle_set_map;
@@ -596,30 +572,6 @@
596572
}
597573
}
598574

599-
<span class="kw">for </span>(handle, ty) <span class="kw">in </span>module.types.clone().iter() {
600-
<span class="kw">if let </span><span class="kw">crate</span>::TypeInner::Array {
601-
base,
602-
size: <span class="kw">crate</span>::ArraySize::Pending(<span class="kw">crate</span>::PendingArraySize::Expression(<span class="kw-2">mut </span>size_expr)),
603-
stride,
604-
} = ty.inner
605-
{
606-
module_map.global_expressions.adjust(<span class="kw-2">&amp;mut </span>size_expr);
607-
module.types.replace(
608-
handle,
609-
<span class="kw">crate</span>::Type {
610-
name: <span class="prelude-val">None</span>,
611-
inner: <span class="kw">crate</span>::TypeInner::Array {
612-
base,
613-
size: <span class="kw">crate</span>::ArraySize::Pending(<span class="kw">crate</span>::PendingArraySize::Expression(
614-
size_expr,
615-
)),
616-
stride,
617-
},
618-
},
619-
);
620-
}
621-
}
622-
623575
<span class="comment">// Temporary storage to help us reuse allocations of existing
624576
// named expression tables.
625577
</span><span class="kw">let </span><span class="kw-2">mut </span>reused_named_expressions = <span class="kw">crate</span>::NamedExpressions::default();

doc/src/naga/compact/types.rs.html

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,14 @@
103103
<a href="#102" id="102">102</a>
104104
<a href="#103" id="103">103</a>
105105
<a href="#104" id="104">104</a>
106+
<a href="#105" id="105">105</a>
107+
<a href="#106" id="106">106</a>
108+
<a href="#107" id="107">107</a>
109+
<a href="#108" id="108">108</a>
110+
<a href="#109" id="109">109</a>
111+
<a href="#110" id="110">110</a>
112+
<a href="#111" id="111">111</a>
113+
<a href="#112" id="112">112</a>
106114
</pre></div><pre class="rust"><code><span class="kw">use super</span>::{HandleSet, ModuleMap};
107115
<span class="kw">use crate</span>::{Handle, UniqueArena};
108116

@@ -187,9 +195,17 @@
187195
} =&gt; adjust(base),
188196
Ti::Array {
189197
<span class="kw-2">ref mut </span>base,
190-
size: <span class="kw">_</span>,
198+
<span class="kw-2">ref mut </span>size,
191199
stride: <span class="kw">_</span>,
192-
} =&gt; adjust(base),
200+
} =&gt; {
201+
adjust(base);
202+
<span class="kw">if let </span><span class="kw">crate</span>::ArraySize::Pending(<span class="kw">crate</span>::PendingArraySize::Expression(
203+
<span class="kw-2">ref mut </span>size_expr,
204+
)) = <span class="kw-2">*</span>size
205+
{
206+
<span class="self">self</span>.global_expressions.adjust(size_expr);
207+
}
208+
}
193209
Ti::Struct {
194210
<span class="kw-2">ref mut </span>members,
195211
span: <span class="kw">_</span>,

0 commit comments

Comments
 (0)