Skip to content

Commit

Permalink
Deploying to master from @ gfx-rs/wgpu@3dd925b 🚀
Browse files Browse the repository at this point in the history
  • Loading branch information
cwfitzgerald committed Jan 22, 2025
1 parent 3c2c172 commit 08e1b09
Show file tree
Hide file tree
Showing 414 changed files with 1,785 additions and 1,791 deletions.
44 changes: 22 additions & 22 deletions doc/player/trait.GlobalPlay.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,37 +2,37 @@
// Required methods
fn <a href="#tymethod.encode_commands" class="fn">encode_commands</a>(
&amp;self,
encoder: CommandEncoderId,
commands: <a class="struct" href="https://doc.rust-lang.org/1.83.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;Command&gt;,
) -&gt; CommandBufferId;
encoder: <a class="type" href="../wgpu_core/id/type.CommandEncoderId.html" title="type wgpu_core::id::CommandEncoderId">CommandEncoderId</a>,
commands: <a class="struct" href="https://doc.rust-lang.org/1.83.0/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;,
) -&gt; <a class="type" href="../wgpu_core/id/type.CommandBufferId.html" title="type wgpu_core::id::CommandBufferId">CommandBufferId</a>;
<span class="item-spacer"></span> fn <a href="#tymethod.process" class="fn">process</a>(
&amp;self,
device: DeviceId,
queue: QueueId,
action: Action&lt;'_&gt;,
device: <a class="type" href="../wgpu_core/id/type.DeviceId.html" title="type wgpu_core::id::DeviceId">DeviceId</a>,
queue: <a class="type" href="../wgpu_core/id/type.QueueId.html" title="type wgpu_core::id::QueueId">QueueId</a>,
action: <a class="enum" href="../wgpu_core/device/trace/enum.Action.html" title="enum wgpu_core::device::trace::Action">Action</a>&lt;'_&gt;,
dir: &amp;<a class="struct" href="https://doc.rust-lang.org/1.83.0/std/path/struct.Path.html" title="struct std::path::Path">Path</a>,
comb_manager: &amp;mut IdentityManager&lt;CommandBuffer&gt;,
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;,
);
}</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#11-15">source</a><h4 class="code-header">fn <a href="#tymethod.encode_commands" class="fn">encode_commands</a>(
&amp;self,
encoder: CommandEncoderId,
commands: <a class="struct" href="https://doc.rust-lang.org/1.83.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;Command&gt;,
) -&gt; CommandBufferId</h4></section><section id="tymethod.process" class="method"><a class="src rightside" href="../src/player/lib.rs.html#16-23">source</a><h4 class="code-header">fn <a href="#tymethod.process" class="fn">process</a>(
encoder: <a class="type" href="../wgpu_core/id/type.CommandEncoderId.html" title="type wgpu_core::id::CommandEncoderId">CommandEncoderId</a>,
commands: <a class="struct" href="https://doc.rust-lang.org/1.83.0/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;,
) -&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#16-23">source</a><h4 class="code-header">fn <a href="#tymethod.process" class="fn">process</a>(
&amp;self,
device: DeviceId,
queue: QueueId,
action: Action&lt;'_&gt;,
device: <a class="type" href="../wgpu_core/id/type.DeviceId.html" title="type wgpu_core::id::DeviceId">DeviceId</a>,
queue: <a class="type" href="../wgpu_core/id/type.QueueId.html" title="type wgpu_core::id::QueueId">QueueId</a>,
action: <a class="enum" href="../wgpu_core/device/trace/enum.Action.html" title="enum wgpu_core::device::trace::Action">Action</a>&lt;'_&gt;,
dir: &amp;<a class="struct" href="https://doc.rust-lang.org/1.83.0/std/path/struct.Path.html" title="struct std::path::Path">Path</a>,
comb_manager: &amp;mut IdentityManager&lt;CommandBuffer&gt;,
)</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#26-465">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#27-218">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>(
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;,
)</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#26-465">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#27-218">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>(
&amp;self,
encoder: CommandEncoderId,
commands: <a class="struct" href="https://doc.rust-lang.org/1.83.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;Command&gt;,
) -&gt; CommandBufferId</h4></section><section id="method.process" class="method trait-impl"><a class="src rightside" href="../src/player/lib.rs.html#220-464">source</a><a href="#method.process" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.process" class="fn">process</a>(
encoder: <a class="type" href="../wgpu_core/id/type.CommandEncoderId.html" title="type wgpu_core::id::CommandEncoderId">CommandEncoderId</a>,
commands: <a class="struct" href="https://doc.rust-lang.org/1.83.0/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;,
) -&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#220-464">source</a><a href="#method.process" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.process" class="fn">process</a>(
&amp;self,
device: DeviceId,
queue: QueueId,
action: Action&lt;'_&gt;,
device: <a class="type" href="../wgpu_core/id/type.DeviceId.html" title="type wgpu_core::id::DeviceId">DeviceId</a>,
queue: <a class="type" href="../wgpu_core/id/type.QueueId.html" title="type wgpu_core::id::QueueId">QueueId</a>,
action: <a class="enum" href="../wgpu_core/device/trace/enum.Action.html" title="enum wgpu_core::device::trace::Action">Action</a>&lt;'_&gt;,
dir: &amp;<a class="struct" href="https://doc.rust-lang.org/1.83.0/std/path/struct.Path.html" title="struct std::path::Path">Path</a>,
comb_manager: &amp;mut IdentityManager&lt;CommandBuffer&gt;,
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;,
)</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>
18 changes: 6 additions & 12 deletions doc/src/wgpu_core/device/resource.rs.html
Original file line number Diff line number Diff line change
Expand Up @@ -3758,10 +3758,7 @@
<a href="#3757" id="3757">3757</a>
<a href="#3758" id="3758">3758</a>
<a href="#3759" id="3759">3759</a>
<a href="#3760" id="3760">3760</a>
<a href="#3761" id="3761">3761</a>
<a href="#3762" id="3762">3762</a>
<a href="#3763" id="3763">3763</a></pre></div><pre class="rust"><code><span class="attr">#[cfg(feature = <span class="string">"trace"</span>)]
<a href="#3760" id="3760">3760</a></pre></div><pre class="rust"><code><span class="attr">#[cfg(feature = <span class="string">"trace"</span>)]
</span><span class="kw">use </span><span class="kw">crate</span>::device::trace;
<span class="kw">use crate</span>::{
binding_model::{<span class="self">self</span>, BindGroup, BindGroupLayout, BindGroupLayoutEntryError},
Expand Down Expand Up @@ -3796,6 +3793,7 @@
};

<span class="kw">use </span>arrayvec::ArrayVec;
<span class="kw">use </span>bitflags::Flags;
<span class="kw">use </span>smallvec::SmallVec;
<span class="kw">use </span>wgt::{
math::align_to, DeviceLostReason, TextureFormat, TextureSampleType, TextureViewDimension,
Expand Down Expand Up @@ -4258,9 +4256,7 @@
<span class="self">self</span>.require_downlevel_flags(wgt::DownlevelFlags::UNRESTRICTED_INDEX_BUFFER)<span class="question-mark">?</span>;
}

<span class="kw">if </span>desc.usage.is_empty()
|| desc.usage | wgt::BufferUsages::all() != wgt::BufferUsages::all()
{
<span class="kw">if </span>desc.usage.is_empty() || desc.usage.contains_unknown_bits() {
<span class="kw">return </span><span class="prelude-val">Err</span>(resource::CreateBufferError::InvalidUsage(desc.usage));
}

Expand Down Expand Up @@ -4494,9 +4490,7 @@

<span class="self">self</span>.check_is_valid()<span class="question-mark">?</span>;

<span class="kw">if </span>desc.usage.is_empty()
|| desc.usage | wgt::TextureUsages::all() != wgt::TextureUsages::all()
{
<span class="kw">if </span>desc.usage.is_empty() || desc.usage.contains_unknown_bits() {
<span class="kw">return </span><span class="prelude-val">Err</span>(CreateTextureError::InvalidUsage(desc.usage));
}

Expand Down Expand Up @@ -5611,7 +5605,7 @@
})<span class="question-mark">?</span>;
}

<span class="kw">if </span>entry.visibility | wgt::ShaderStages::all() != wgt::ShaderStages::all() {
<span class="kw">if </span>entry.visibility.contains_unknown_bits() {
<span class="kw">return </span><span class="prelude-val">Err</span>(
binding_model::CreateBindGroupLayoutError::InvalidVisibility(entry.visibility),
);
Expand Down Expand Up @@ -6840,7 +6834,7 @@
<span class="kw">if let </span><span class="prelude-val">Some</span>(cs) = cs.as_ref() {
target_specified = <span class="bool-val">true</span>;
<span class="kw">let </span>error = <span class="lifetime">'error</span>: {
<span class="kw">if </span>cs.write_mask | wgt::ColorWrites::all() != wgt::ColorWrites::all() {
<span class="kw">if </span>cs.write_mask.contains_unknown_bits() {
<span class="kw">break </span><span class="lifetime">'error </span><span class="prelude-val">Some</span>(pipeline::ColorStateError::InvalidWriteMask(
cs.write_mask,
));
Expand Down
4 changes: 2 additions & 2 deletions doc/trait.impl/core/convert/trait.From.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions doc/type.impl/alloc/sync/struct.Arc.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions doc/wgpu_core/device/fn.create_validator.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<!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="Create a validator with the given validation flags."><title>create_validator in wgpu_core::device - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../static.files/normalize-76eba96aa4d2e634.css"><link rel="stylesheet" href="../../static.files/rustdoc-b0742ba02757f159.css"><meta name="rustdoc-vars" data-root-path="../../" data-static-root-path="../../static.files/" data-current-crate="wgpu_core" data-themes="" data-resource-suffix="" data-rustdoc-version="1.83.0 (90b35a623 2024-11-26)" data-channel="1.83.0" data-search-js="search-f0d225181b97f9a4.js" data-settings-js="settings-805db61a62df4bd2.js" ><script src="../../static.files/storage-1d39b6787ed640ff.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link rel="stylesheet" href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><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" title="show sidebar"></button></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../wgpu_core/index.html">wgpu_<wbr>core</a><span class="version">24.0.0</span></h2></div><div class="sidebar-elems"><div id="rustdoc-modnav"><h2><a href="index.html">In wgpu_<wbr>core::<wbr>device</a></h2></div></div></nav><div class="sidebar-resizer"></div><main><div class="width-limiter"><rustdoc-search></rustdoc-search><section id="main-content" class="content"><div class="main-heading"><span class="rustdoc-breadcrumbs"><a href="../index.html">wgpu_core</a>::<wbr><a href="index.html">device</a></span><h1>Function <span class="fn">create_validator</span><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"><a class="src" href="../../src/wgpu_core/device/mod.rs.html#373-470">source</a> </span></div><pre class="rust item-decl"><code>pub fn create_validator(
features: <a class="struct" href="../../wgpu_types/struct.Features.html" title="struct wgpu_types::Features">Features</a>,
downlevel: <a class="struct" href="../../wgpu_types/struct.DownlevelFlags.html" title="struct wgpu_types::DownlevelFlags">DownlevelFlags</a>,
flags: ValidationFlags,
) -&gt; Validator</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Create a validator with the given validation flags.</p>
flags: <a class="struct" href="../../naga/valid/struct.ValidationFlags.html" title="struct naga::valid::ValidationFlags">ValidationFlags</a>,
) -&gt; <a class="struct" href="../../naga/valid/struct.Validator.html" title="struct naga::valid::Validator">Validator</a></code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Create a validator with the given validation flags.</p>
</div></details></section></div></main></body></html>
Loading

0 comments on commit 08e1b09

Please sign in to comment.