Skip to content

Commit efec1fd

Browse files
committed
Deploying to master from @ gfx-rs/wgpu@e936c06 🚀
1 parent f86bf0b commit efec1fd

File tree

214 files changed

+2272
-1403
lines changed

Some content is hidden

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

214 files changed

+2272
-1403
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/bundle.rs.html

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1731,7 +1731,9 @@
17311731
<a href="#1730" id="1730">1730</a>
17321732
<a href="#1731" id="1731">1731</a>
17331733
<a href="#1732" id="1732">1732</a>
1734-
<a href="#1733" id="1733">1733</a></pre></div><pre class="rust"><code><span class="doccomment">/*! Render Bundles
1734+
<a href="#1733" id="1733">1733</a>
1735+
<a href="#1734" id="1734">1734</a>
1736+
<a href="#1735" id="1735">1735</a></pre></div><pre class="rust"><code><span class="doccomment">/*! Render Bundles
17351737

17361738
A render bundle is a prerecorded sequence of commands that can be replayed on a
17371739
command encoder with a single call. A single bundle can replayed any number of
@@ -1818,6 +1820,7 @@
18181820
vec::Vec,
18191821
};
18201822
<span class="kw">use </span>core::{
1823+
convert::Infallible,
18211824
num::{NonZeroU32, NonZeroU64},
18221825
ops::Range,
18231826
};
@@ -1886,7 +1889,7 @@
18861889
<span class="attr">#[derive(Debug)]
18871890
#[cfg_attr(feature = <span class="string">"serde"</span>, derive(serde::Deserialize, serde::Serialize))]
18881891
</span><span class="kw">pub struct </span>RenderBundleEncoder {
1889-
base: BasePass&lt;RenderCommand&gt;,
1892+
base: BasePass&lt;RenderCommand, Infallible&gt;,
18901893
parent_id: id::DeviceId,
18911894
<span class="kw">pub</span>(<span class="kw">crate</span>) context: RenderPassContext,
18921895
<span class="kw">pub</span>(<span class="kw">crate</span>) is_depth_read_only: bool,
@@ -1903,7 +1906,7 @@
19031906
<span class="kw">pub fn </span>new(
19041907
desc: <span class="kw-2">&amp;</span>RenderBundleEncoderDescriptor,
19051908
parent_id: id::DeviceId,
1906-
base: <span class="prelude-ty">Option</span>&lt;BasePass&lt;RenderCommand&gt;&gt;,
1909+
base: <span class="prelude-ty">Option</span>&lt;BasePass&lt;RenderCommand, Infallible&gt;&gt;,
19071910
) -&gt; <span class="prelude-ty">Result</span>&lt;<span class="self">Self</span>, CreateRenderBundleError&gt; {
19081911
<span class="kw">let </span>(is_depth_read_only, is_stencil_read_only) = <span class="kw">match </span>desc.depth_stencil {
19091912
<span class="prelude-val">Some</span>(ds) =&gt; {
@@ -1981,7 +1984,7 @@
19811984
}
19821985

19831986
<span class="attr">#[cfg(feature = <span class="string">"trace"</span>)]
1984-
</span><span class="kw">pub</span>(<span class="kw">crate</span>) <span class="kw">fn </span>to_base_pass(<span class="kw-2">&amp;</span><span class="self">self</span>) -&gt; BasePass&lt;RenderCommand&gt; {
1987+
</span><span class="kw">pub</span>(<span class="kw">crate</span>) <span class="kw">fn </span>to_base_pass(<span class="kw-2">&amp;</span><span class="self">self</span>) -&gt; BasePass&lt;RenderCommand, Infallible&gt; {
19851988
<span class="self">self</span>.base.clone()
19861989
}
19871990

@@ -2199,6 +2202,7 @@
21992202
<span class="kw">let </span>render_bundle = RenderBundle {
22002203
base: BasePass {
22012204
label: desc.label.as_deref().map(str::to_owned),
2205+
error: <span class="prelude-val">None</span>,
22022206
commands,
22032207
dynamic_offsets: flat_dynamic_offsets,
22042208
string_data: <span class="self">self</span>.base.string_data,
@@ -2596,7 +2600,7 @@
25962600
</span><span class="kw">pub struct </span>RenderBundle {
25972601
<span class="comment">// Normalized command stream. It can be executed verbatim,
25982602
// without re-binding anything on the pipeline change.
2599-
</span>base: BasePass&lt;ArcRenderCommand&gt;,
2603+
</span>base: BasePass&lt;ArcRenderCommand, Infallible&gt;,
26002604
<span class="kw">pub</span>(<span class="kw">super</span>) is_depth_read_only: bool,
26012605
<span class="kw">pub</span>(<span class="kw">super</span>) is_stencil_read_only: bool,
26022606
<span class="kw">pub</span>(<span class="kw">crate</span>) device: Arc&lt;Device&gt;,

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

Lines changed: 506 additions & 322 deletions
Large diffs are not rendered by default.

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

Lines changed: 355 additions & 37 deletions
Large diffs are not rendered by default.

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

Lines changed: 723 additions & 521 deletions
Large diffs are not rendered by default.

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@
257257
<a href="#256" id="256">256</a>
258258
<a href="#257" id="257">257</a>
259259
<a href="#258" id="258">258</a></pre></div><pre class="rust"><code><span class="kw">use </span>alloc::{string::String, vec::Vec};
260-
<span class="kw">use </span>core::ops::Range;
260+
<span class="kw">use </span>core::{convert::Infallible, ops::Range};
261261

262262
<span class="attr">#[cfg(feature = <span class="string">"trace"</span>)]
263263
</span><span class="kw">use </span>{alloc::borrow::Cow, std::io::Write <span class="kw">as _</span>};
@@ -367,7 +367,7 @@
367367
CreateRenderBundle {
368368
id: id::RenderBundleId,
369369
desc: <span class="kw">crate</span>::command::RenderBundleEncoderDescriptor&lt;<span class="lifetime">'a</span>&gt;,
370-
base: <span class="kw">crate</span>::command::BasePass&lt;<span class="kw">crate</span>::command::RenderCommand&gt;,
370+
base: <span class="kw">crate</span>::command::BasePass&lt;<span class="kw">crate</span>::command::RenderCommand, Infallible&gt;,
371371
},
372372
DestroyRenderBundle(id::RenderBundleId),
373373
CreateQuerySet {
@@ -450,11 +450,11 @@
450450
PopDebugGroup,
451451
InsertDebugMarker(String),
452452
RunComputePass {
453-
base: <span class="kw">crate</span>::command::BasePass&lt;<span class="kw">crate</span>::command::ComputeCommand&gt;,
453+
base: <span class="kw">crate</span>::command::BasePass&lt;<span class="kw">crate</span>::command::ComputeCommand, Infallible&gt;,
454454
timestamp_writes: <span class="prelude-ty">Option</span>&lt;<span class="kw">crate</span>::command::PassTimestampWrites&gt;,
455455
},
456456
RunRenderPass {
457-
base: <span class="kw">crate</span>::command::BasePass&lt;<span class="kw">crate</span>::command::RenderCommand&gt;,
457+
base: <span class="kw">crate</span>::command::BasePass&lt;<span class="kw">crate</span>::command::RenderCommand, Infallible&gt;,
458458
target_colors: Vec&lt;<span class="prelude-ty">Option</span>&lt;<span class="kw">crate</span>::command::RenderPassColorAttachment&gt;&gt;,
459459
target_depth_stencil: <span class="prelude-ty">Option</span>&lt;<span class="kw">crate</span>::command::RenderPassDepthStencilAttachment&gt;,
460460
timestamp_writes: <span class="prelude-ty">Option</span>&lt;<span class="kw">crate</span>::command::PassTimestampWrites&gt;,

doc/trait.impl/core/clone/trait.Clone.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/trait.impl/core/convert/trait.From.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/trait.impl/core/error/trait.Error.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.

0 commit comments

Comments
 (0)