Skip to content

Commit 7a992ee

Browse files
committed
Deploying to master from @ gfx-rs/wgpu@995efdd 🚀
1 parent 942255c commit 7a992ee

File tree

957 files changed

+4709
-4659
lines changed

Some content is hidden

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

957 files changed

+4709
-4659
lines changed

doc/player/trait.GlobalPlay.html

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -2,37 +2,37 @@
22
// Required methods
33
fn <a href="#tymethod.encode_commands" class="fn">encode_commands</a>(
44
&amp;self,
5-
encoder: <a class="type" href="../wgpu_core/id/type.CommandEncoderId.html" title="type wgpu_core::id::CommandEncoderId">CommandEncoderId</a>,
6-
commands: <a class="struct" href="https://doc.rust-lang.org/1.84.1/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="enum" href="../wgpu_core/device/trace/enum.Command.html" title="enum wgpu_core::device::trace::Command">Command</a>&gt;,
7-
) -&gt; <a class="type" href="../wgpu_core/id/type.CommandBufferId.html" title="type wgpu_core::id::CommandBufferId">CommandBufferId</a>;
5+
encoder: CommandEncoderId,
6+
commands: <a class="struct" href="https://doc.rust-lang.org/1.84.1/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;Command&gt;,
7+
) -&gt; CommandBufferId;
88
<span class="item-spacer"></span> fn <a href="#tymethod.process" class="fn">process</a>(
99
&amp;self,
10-
device: <a class="type" href="../wgpu_core/id/type.DeviceId.html" title="type wgpu_core::id::DeviceId">DeviceId</a>,
11-
queue: <a class="type" href="../wgpu_core/id/type.QueueId.html" title="type wgpu_core::id::QueueId">QueueId</a>,
12-
action: <a class="enum" href="../wgpu_core/device/trace/enum.Action.html" title="enum wgpu_core::device::trace::Action">Action</a>&lt;'_&gt;,
10+
device: DeviceId,
11+
queue: QueueId,
12+
action: Action&lt;'_&gt;,
1313
dir: &amp;<a class="struct" href="https://doc.rust-lang.org/1.84.1/std/path/struct.Path.html" title="struct std::path::Path">Path</a>,
14-
comb_manager: &amp;mut <a class="struct" href="../wgpu_core/identity/struct.IdentityManager.html" title="struct wgpu_core::identity::IdentityManager">IdentityManager</a>&lt;<a class="enum" href="../wgpu_core/id/markers/enum.CommandBuffer.html" title="enum wgpu_core::id::markers::CommandBuffer">CommandBuffer</a>&gt;,
14+
comb_manager: &amp;mut IdentityManager&lt;CommandBuffer&gt;,
1515
);
1616
}</code></pre><h2 id="required-methods" class="section-header">Required Methods<a href="#required-methods" class="anchor">§</a></h2><div class="methods"><section id="tymethod.encode_commands" class="method"><a class="src rightside" href="../src/player/lib.rs.html#14-18">Source</a><h4 class="code-header">fn <a href="#tymethod.encode_commands" class="fn">encode_commands</a>(
1717
&amp;self,
18-
encoder: <a class="type" href="../wgpu_core/id/type.CommandEncoderId.html" title="type wgpu_core::id::CommandEncoderId">CommandEncoderId</a>,
19-
commands: <a class="struct" href="https://doc.rust-lang.org/1.84.1/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="enum" href="../wgpu_core/device/trace/enum.Command.html" title="enum wgpu_core::device::trace::Command">Command</a>&gt;,
20-
) -&gt; <a class="type" href="../wgpu_core/id/type.CommandBufferId.html" title="type wgpu_core::id::CommandBufferId">CommandBufferId</a></h4></section><section id="tymethod.process" class="method"><a class="src rightside" href="../src/player/lib.rs.html#19-26">Source</a><h4 class="code-header">fn <a href="#tymethod.process" class="fn">process</a>(
18+
encoder: CommandEncoderId,
19+
commands: <a class="struct" href="https://doc.rust-lang.org/1.84.1/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;Command&gt;,
20+
) -&gt; CommandBufferId</h4></section><section id="tymethod.process" class="method"><a class="src rightside" href="../src/player/lib.rs.html#19-26">Source</a><h4 class="code-header">fn <a href="#tymethod.process" class="fn">process</a>(
2121
&amp;self,
22-
device: <a class="type" href="../wgpu_core/id/type.DeviceId.html" title="type wgpu_core::id::DeviceId">DeviceId</a>,
23-
queue: <a class="type" href="../wgpu_core/id/type.QueueId.html" title="type wgpu_core::id::QueueId">QueueId</a>,
24-
action: <a class="enum" href="../wgpu_core/device/trace/enum.Action.html" title="enum wgpu_core::device::trace::Action">Action</a>&lt;'_&gt;,
22+
device: DeviceId,
23+
queue: QueueId,
24+
action: Action&lt;'_&gt;,
2525
dir: &amp;<a class="struct" href="https://doc.rust-lang.org/1.84.1/std/path/struct.Path.html" title="struct std::path::Path">Path</a>,
26-
comb_manager: &amp;mut <a class="struct" href="../wgpu_core/identity/struct.IdentityManager.html" title="struct wgpu_core::identity::IdentityManager">IdentityManager</a>&lt;<a class="enum" href="../wgpu_core/id/markers/enum.CommandBuffer.html" title="enum wgpu_core::id::markers::CommandBuffer">CommandBuffer</a>&gt;,
27-
)</h4></section></div><h2 id="foreign-impls" class="section-header">Implementations on Foreign Types<a href="#foreign-impls" class="anchor">§</a></h2><details class="toggle implementors-toggle"><summary><section id="impl-GlobalPlay-for-Global" class="impl"><a class="src rightside" href="../src/player/lib.rs.html#29-428">Source</a><a href="#impl-GlobalPlay-for-Global" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.GlobalPlay.html" title="trait player::GlobalPlay">GlobalPlay</a> for <a class="struct" href="../wgpu_core/global/struct.Global.html" title="struct wgpu_core::global::Global">Global</a></h3></section></summary><div class="impl-items"><section id="method.encode_commands" class="method trait-impl"><a class="src rightside" href="../src/player/lib.rs.html#30-181">Source</a><a href="#method.encode_commands" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.encode_commands" class="fn">encode_commands</a>(
26+
comb_manager: &amp;mut IdentityManager&lt;CommandBuffer&gt;,
27+
)</h4></section></div><h2 id="foreign-impls" class="section-header">Implementations on Foreign Types<a href="#foreign-impls" class="anchor">§</a></h2><details class="toggle implementors-toggle"><summary><section id="impl-GlobalPlay-for-Global" class="impl"><a class="src rightside" href="../src/player/lib.rs.html#29-428">Source</a><a href="#impl-GlobalPlay-for-Global" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.GlobalPlay.html" title="trait player::GlobalPlay">GlobalPlay</a> for Global</h3></section></summary><div class="impl-items"><section id="method.encode_commands" class="method trait-impl"><a class="src rightside" href="../src/player/lib.rs.html#30-181">Source</a><a href="#method.encode_commands" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.encode_commands" class="fn">encode_commands</a>(
2828
&amp;self,
29-
encoder: <a class="type" href="../wgpu_core/id/type.CommandEncoderId.html" title="type wgpu_core::id::CommandEncoderId">CommandEncoderId</a>,
30-
commands: <a class="struct" href="https://doc.rust-lang.org/1.84.1/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="enum" href="../wgpu_core/device/trace/enum.Command.html" title="enum wgpu_core::device::trace::Command">Command</a>&gt;,
31-
) -&gt; <a class="type" href="../wgpu_core/id/type.CommandBufferId.html" title="type wgpu_core::id::CommandBufferId">CommandBufferId</a></h4></section><section id="method.process" class="method trait-impl"><a class="src rightside" href="../src/player/lib.rs.html#183-427">Source</a><a href="#method.process" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.process" class="fn">process</a>(
29+
encoder: CommandEncoderId,
30+
commands: <a class="struct" href="https://doc.rust-lang.org/1.84.1/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;Command&gt;,
31+
) -&gt; CommandBufferId</h4></section><section id="method.process" class="method trait-impl"><a class="src rightside" href="../src/player/lib.rs.html#183-427">Source</a><a href="#method.process" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.process" class="fn">process</a>(
3232
&amp;self,
33-
device: <a class="type" href="../wgpu_core/id/type.DeviceId.html" title="type wgpu_core::id::DeviceId">DeviceId</a>,
34-
queue: <a class="type" href="../wgpu_core/id/type.QueueId.html" title="type wgpu_core::id::QueueId">QueueId</a>,
35-
action: <a class="enum" href="../wgpu_core/device/trace/enum.Action.html" title="enum wgpu_core::device::trace::Action">Action</a>&lt;'_&gt;,
33+
device: DeviceId,
34+
queue: QueueId,
35+
action: Action&lt;'_&gt;,
3636
dir: &amp;<a class="struct" href="https://doc.rust-lang.org/1.84.1/std/path/struct.Path.html" title="struct std::path::Path">Path</a>,
37-
comb_manager: &amp;mut <a class="struct" href="../wgpu_core/identity/struct.IdentityManager.html" title="struct wgpu_core::identity::IdentityManager">IdentityManager</a>&lt;<a class="enum" href="../wgpu_core/id/markers/enum.CommandBuffer.html" title="enum wgpu_core::id::markers::CommandBuffer">CommandBuffer</a>&gt;,
37+
comb_manager: &amp;mut IdentityManager&lt;CommandBuffer&gt;,
3838
)</h4></section></div></details><h2 id="implementors" class="section-header">Implementors<a href="#implementors" class="anchor">§</a></h2><div id="implementors-list"></div><script src="../trait.impl/player/trait.GlobalPlay.js" data-ignore-extern-crates="wgpu_core" async></script></section></div></main></body></html>

doc/src/wgpu_hal/lib.rs.html

Lines changed: 37 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2549,7 +2549,24 @@
25492549
<a href="#2548" id="2548">2548</a>
25502550
<a href="#2549" id="2549">2549</a>
25512551
<a href="#2550" id="2550">2550</a>
2552-
<a href="#2551" id="2551">2551</a></pre></div><pre class="rust"><code><span class="doccomment">//! A cross-platform unsafe graphics abstraction.
2552+
<a href="#2551" id="2551">2551</a>
2553+
<a href="#2552" id="2552">2552</a>
2554+
<a href="#2553" id="2553">2553</a>
2555+
<a href="#2554" id="2554">2554</a>
2556+
<a href="#2555" id="2555">2555</a>
2557+
<a href="#2556" id="2556">2556</a>
2558+
<a href="#2557" id="2557">2557</a>
2559+
<a href="#2558" id="2558">2558</a>
2560+
<a href="#2559" id="2559">2559</a>
2561+
<a href="#2560" id="2560">2560</a>
2562+
<a href="#2561" id="2561">2561</a>
2563+
<a href="#2562" id="2562">2562</a>
2564+
<a href="#2563" id="2563">2563</a>
2565+
<a href="#2564" id="2564">2564</a>
2566+
<a href="#2565" id="2565">2565</a>
2567+
<a href="#2566" id="2566">2566</a>
2568+
<a href="#2567" id="2567">2567</a>
2569+
<a href="#2568" id="2568">2568</a></pre></div><pre class="rust"><code><span class="doccomment">//! A cross-platform unsafe graphics abstraction.
25532570
//!
25542571
//! This crate defines a set of traits abstracting over modern graphics APIs,
25552572
//! with implementations ("backends") for Vulkan, Metal, Direct3D, and GL.
@@ -2843,7 +2860,7 @@
28432860

28442861
<span class="attr">#[allow(unused)]
28452862
</span><span class="kw">use </span>alloc::boxed::Box;
2846-
<span class="kw">use </span>alloc::{borrow::Cow, string::String, sync::Arc, vec::Vec};
2863+
<span class="kw">use </span>alloc::{borrow::Cow, string::String, vec::Vec};
28472864
<span class="kw">use </span>core::{
28482865
borrow::Borrow,
28492866
error::Error,
@@ -2857,6 +2874,14 @@
28572874
<span class="kw">use </span>thiserror::Error;
28582875
<span class="kw">use </span>wgt::WasmNotSendSync;
28592876

2877+
<span class="macro">cfg_if::cfg_if!</span> {
2878+
<span class="kw">if </span><span class="attr">#[cfg(supports_ptr_atomics)] </span>{
2879+
<span class="kw">use </span>alloc::sync::Arc;
2880+
} <span class="kw">else if </span><span class="attr">#[cfg(feature = <span class="string">"portable-atomic"</span>)] </span>{
2881+
<span class="kw">use </span>portable_atomic_util::Arc;
2882+
}
2883+
}
2884+
28602885
<span class="comment">// - Vertex + Fragment
28612886
// - Compute
28622887
// Task + Mesh + Fragment
@@ -3001,9 +3026,18 @@
30013026
}
30023027
<span class="attr">#[allow(dead_code)] </span><span class="comment">// may be unused on some platforms
30033028
</span><span class="kw">pub</span>(<span class="kw">crate</span>) <span class="kw">fn </span>with_source(message: String, source: <span class="kw">impl </span>Error + Send + Sync + <span class="lifetime">'static</span>) -&gt; <span class="self">Self </span>{
3029+
<span class="macro">cfg_if::cfg_if!</span> {
3030+
<span class="kw">if </span><span class="attr">#[cfg(supports_ptr_atomics)] </span>{
3031+
<span class="kw">let </span>source = Arc::new(source);
3032+
} <span class="kw">else </span>{
3033+
<span class="comment">// TODO(https://github.com/rust-lang/rust/issues/18598): avoid indirection via Box once arbitrary types support unsized coercion
3034+
</span><span class="kw">let </span>source: Box&lt;<span class="kw">dyn </span>Error + Send + Sync + <span class="lifetime">'static</span>&gt; = Box::new(source);
3035+
<span class="kw">let </span>source = Arc::from(source);
3036+
}
3037+
}
30043038
<span class="self">Self </span>{
30053039
message,
3006-
source: <span class="prelude-val">Some</span>(Arc::new(source)),
3040+
source: <span class="prelude-val">Some</span>(source),
30073041
}
30083042
}
30093043
}

doc/src/wgpu_hal/noop/buffer.rs.html

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,9 +78,25 @@
7878
<a href="#77" id="77">77</a>
7979
<a href="#78" id="78">78</a>
8080
<a href="#79" id="79">79</a>
81-
<a href="#80" id="80">80</a></pre></div><pre class="rust"><code><span class="kw">use </span>alloc::{sync::Arc, vec::Vec};
81+
<a href="#80" id="80">80</a>
82+
<a href="#81" id="81">81</a>
83+
<a href="#82" id="82">82</a>
84+
<a href="#83" id="83">83</a>
85+
<a href="#84" id="84">84</a>
86+
<a href="#85" id="85">85</a>
87+
<a href="#86" id="86">86</a>
88+
<a href="#87" id="87">87</a>
89+
<a href="#88" id="88">88</a></pre></div><pre class="rust"><code><span class="kw">use </span>alloc::vec::Vec;
8290
<span class="kw">use </span>core::{cell::UnsafeCell, ops::Range, ptr};
8391

92+
<span class="macro">cfg_if::cfg_if!</span> {
93+
<span class="kw">if </span><span class="attr">#[cfg(supports_ptr_atomics)] </span>{
94+
<span class="kw">use </span>alloc::sync::Arc;
95+
} <span class="kw">else if </span><span class="attr">#[cfg(feature = <span class="string">"portable-atomic"</span>)] </span>{
96+
<span class="kw">use </span>portable_atomic_util::Arc;
97+
}
98+
}
99+
84100
<span class="attr">#[derive(Clone, Debug)]
85101
</span><span class="kw">pub struct </span>Buffer {
86102
<span class="doccomment">/// This data is potentially accessed mutably in arbitrary non-overlapping slices,

doc/trait.impl/core/borrow/trait.Borrow.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/type.impl/alloc/sync/struct.Arc.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)