Skip to content

Commit 7e06a76

Browse files
committed
Deploying to master from @ gfx-rs/wgpu@71820ee 🚀
1 parent ac9e924 commit 7e06a76

File tree

91 files changed

+3242
-3172
lines changed

Some content is hidden

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

91 files changed

+3242
-3172
lines changed

doc/search-index.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

doc/search.desc/wgpu_core/wgpu_core-desc-0-.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

doc/src/wgpu_core/command/bind.rs.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -431,7 +431,7 @@
431431
<a href=#431 id=431 data-nosnippet>431</a> <span class="kw">pub</span>(<span class="kw">super</span>) <span class="kw">fn </span>entries(
432432
<a href=#432 id=432 data-nosnippet>432</a> <span class="kw-2">&amp;</span><span class="self">self</span>,
433433
<a href=#433 id=433 data-nosnippet>433</a> range: Range&lt;usize&gt;,
434-
<a href=#434 id=434 data-nosnippet>434</a> ) -&gt; <span class="kw">impl </span>ExactSizeIterator&lt;Item = (usize, <span class="kw-2">&amp;</span><span class="lifetime">'_ </span>EntryPayload)&gt; + <span class="lifetime">'_ </span>{
434+
<a href=#434 id=434 data-nosnippet>434</a> ) -&gt; <span class="kw">impl </span>ExactSizeIterator&lt;Item = (usize, <span class="kw-2">&amp;</span><span class="lifetime">'_ </span>EntryPayload)&gt; + Clone + <span class="lifetime">'_ </span>{
435435
<a href=#435 id=435 data-nosnippet>435</a> <span class="kw">let </span>payloads = <span class="kw-2">&amp;</span><span class="self">self</span>.payloads[range.clone()];
436436
<a href=#436 id=436 data-nosnippet>436</a> zip(range, payloads)
437437
<a href=#437 id=437 data-nosnippet>437</a> }

doc/src/wgpu_core/command/compute.rs.html

Lines changed: 1291 additions & 1270 deletions
Large diffs are not rendered by default.

doc/src/wgpu_core/command/pass.rs.html

Lines changed: 225 additions & 227 deletions
Large diffs are not rendered by default.

doc/src/wgpu_core/command/render.rs.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -601,7 +601,7 @@
601601
<a href=#601 id=601 data-nosnippet>601</a> /// See the compute pass version for an explanation of some ways that
602602
<a href=#602 id=602 data-nosnippet>602</a> /// `flush_bindings` differs between the two types of passes.
603603
<a href=#603 id=603 data-nosnippet>603</a> </span><span class="kw">fn </span>flush_bindings(<span class="kw-2">&amp;mut </span><span class="self">self</span>) -&gt; <span class="prelude-ty">Result</span>&lt;(), RenderPassErrorInner&gt; {
604-
<a href=#604 id=604 data-nosnippet>604</a> flush_bindings_helper(<span class="kw-2">&amp;mut </span><span class="self">self</span>.pass, |<span class="kw">_</span>| {})<span class="question-mark">?</span>;
604+
<a href=#604 id=604 data-nosnippet>604</a> flush_bindings_helper(<span class="kw-2">&amp;mut </span><span class="self">self</span>.pass)<span class="question-mark">?</span>;
605605
<a href=#605 id=605 data-nosnippet>605</a> <span class="prelude-val">Ok</span>(())
606606
<a href=#606 id=606 data-nosnippet>606</a> }
607607
<a href=#607 id=607 data-nosnippet>607</a>

doc/src/wgpu_core/device/queue.rs.html

Lines changed: 19 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1801,18 +1801,22 @@
18011801
<a href=#1801 id=1801 data-nosnippet>1801</a> }
18021802
<a href=#1802 id=1802 data-nosnippet>1802</a> }
18031803
<a href=#1803 id=1803 data-nosnippet>1803</a> }
1804-
<a href=#1804 id=1804 data-nosnippet>1804</a> {
1805-
<a href=#1805 id=1805 data-nosnippet>1805</a> <span class="macro">profiling::scope!</span>(<span class="string">"bind groups"</span>);
1806-
<a href=#1806 id=1806 data-nosnippet>1806</a> <span class="kw">for </span>bind_group <span class="kw">in </span><span class="kw-2">&amp;</span>cmd_buf_data.trackers.bind_groups {
1807-
<a href=#1807 id=1807 data-nosnippet>1807</a> bind_group.try_raw(snatch_guard)<span class="question-mark">?</span>;
1808-
<a href=#1808 id=1808 data-nosnippet>1808</a> }
1809-
<a href=#1809 id=1809 data-nosnippet>1809</a> }
1810-
<a href=#1810 id=1810 data-nosnippet>1810</a>
1811-
<a href=#1811 id=1811 data-nosnippet>1811</a> <span class="kw">if let </span><span class="prelude-val">Err</span>(e) =
1812-
<a href=#1812 id=1812 data-nosnippet>1812</a> cmd_buf_data.validate_acceleration_structure_actions(snatch_guard, command_index_guard)
1813-
<a href=#1813 id=1813 data-nosnippet>1813</a> {
1814-
<a href=#1814 id=1814 data-nosnippet>1814</a> <span class="kw">return </span><span class="prelude-val">Err</span>(e.into());
1815-
<a href=#1815 id=1815 data-nosnippet>1815</a> }
1816-
<a href=#1816 id=1816 data-nosnippet>1816</a> }
1817-
<a href=#1817 id=1817 data-nosnippet>1817</a> <span class="prelude-val">Ok</span>(())
1818-
<a href=#1818 id=1818 data-nosnippet>1818</a>}</code></pre></div></section></main></body></html>
1804+
<a href=#1804 id=1804 data-nosnippet>1804</a> <span class="comment">// WebGPU requires that we check every bind group referenced during
1805+
<a href=#1805 id=1805 data-nosnippet>1805</a> // encoding, even ones that may have been replaced before being used.
1806+
<a href=#1806 id=1806 data-nosnippet>1806</a> // TODO(&lt;https://github.com/gfx-rs/wgpu/issues/8510&gt;): Optimize this.
1807+
<a href=#1807 id=1807 data-nosnippet>1807</a> </span>{
1808+
<a href=#1808 id=1808 data-nosnippet>1808</a> <span class="macro">profiling::scope!</span>(<span class="string">"bind groups"</span>);
1809+
<a href=#1809 id=1809 data-nosnippet>1809</a> <span class="kw">for </span>bind_group <span class="kw">in </span><span class="kw-2">&amp;</span>cmd_buf_data.trackers.bind_groups {
1810+
<a href=#1810 id=1810 data-nosnippet>1810</a> <span class="comment">// This checks the bind group and all resources it references.
1811+
<a href=#1811 id=1811 data-nosnippet>1811</a> </span>bind_group.try_raw(snatch_guard)<span class="question-mark">?</span>;
1812+
<a href=#1812 id=1812 data-nosnippet>1812</a> }
1813+
<a href=#1813 id=1813 data-nosnippet>1813</a> }
1814+
<a href=#1814 id=1814 data-nosnippet>1814</a>
1815+
<a href=#1815 id=1815 data-nosnippet>1815</a> <span class="kw">if let </span><span class="prelude-val">Err</span>(e) =
1816+
<a href=#1816 id=1816 data-nosnippet>1816</a> cmd_buf_data.validate_acceleration_structure_actions(snatch_guard, command_index_guard)
1817+
<a href=#1817 id=1817 data-nosnippet>1817</a> {
1818+
<a href=#1818 id=1818 data-nosnippet>1818</a> <span class="kw">return </span><span class="prelude-val">Err</span>(e.into());
1819+
<a href=#1819 id=1819 data-nosnippet>1819</a> }
1820+
<a href=#1820 id=1820 data-nosnippet>1820</a> }
1821+
<a href=#1821 id=1821 data-nosnippet>1821</a> <span class="prelude-val">Ok</span>(())
1822+
<a href=#1822 id=1822 data-nosnippet>1822</a>}</code></pre></div></section></main></body></html>

0 commit comments

Comments
 (0)