Skip to content

Commit 4d77fa1

Browse files
committed
Deploying to master from @ gfx-rs/wgpu@1280819 🚀
1 parent 5104638 commit 4d77fa1

File tree

943 files changed

+4184
-4168
lines changed

Some content is hidden

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

943 files changed

+4184
-4168
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: 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;
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>;
88
<span class="item-spacer"></span> fn <a href="#tymethod.process" class="fn">process</a>(
99
&amp;self,
10-
device: DeviceId,
11-
queue: QueueId,
12-
action: Action&lt;'_&gt;,
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;,
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 IdentityManager&lt;CommandBuffer&gt;,
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;,
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: 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>(
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>(
2121
&amp;self,
22-
device: DeviceId,
23-
queue: QueueId,
24-
action: Action&lt;'_&gt;,
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;,
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 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>(
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>(
2828
&amp;self,
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>(
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>(
3232
&amp;self,
33-
device: DeviceId,
34-
queue: QueueId,
35-
action: Action&lt;'_&gt;,
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;,
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 IdentityManager&lt;CommandBuffer&gt;,
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;,
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/vulkan/conv.rs.html

Lines changed: 29 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1007,7 +1007,15 @@
10071007
<a href="#1006" id="1006">1006</a>
10081008
<a href="#1007" id="1007">1007</a>
10091009
<a href="#1008" id="1008">1008</a>
1010-
<a href="#1009" id="1009">1009</a></pre></div><pre class="rust"><code><span class="kw">use </span>alloc::vec::Vec;
1010+
<a href="#1009" id="1009">1009</a>
1011+
<a href="#1010" id="1010">1010</a>
1012+
<a href="#1011" id="1011">1011</a>
1013+
<a href="#1012" id="1012">1012</a>
1014+
<a href="#1013" id="1013">1013</a>
1015+
<a href="#1014" id="1014">1014</a>
1016+
<a href="#1015" id="1015">1015</a>
1017+
<a href="#1016" id="1016">1016</a>
1018+
<a href="#1017" id="1017">1017</a></pre></div><pre class="rust"><code><span class="kw">use </span>alloc::vec::Vec;
10111019

10121020
<span class="kw">use </span>ash::vk;
10131021

@@ -1477,18 +1485,26 @@
14771485
}
14781486

14791487
<span class="kw">pub fn </span>map_vk_present_mode(mode: vk::PresentModeKHR) -&gt; <span class="prelude-ty">Option</span>&lt;wgt::PresentMode&gt; {
1480-
<span class="kw">if </span>mode == vk::PresentModeKHR::IMMEDIATE {
1481-
<span class="prelude-val">Some</span>(wgt::PresentMode::Immediate)
1482-
} <span class="kw">else if </span>mode == vk::PresentModeKHR::MAILBOX {
1483-
<span class="prelude-val">Some</span>(wgt::PresentMode::Mailbox)
1484-
} <span class="kw">else if </span>mode == vk::PresentModeKHR::FIFO {
1485-
<span class="prelude-val">Some</span>(wgt::PresentMode::Fifo)
1486-
} <span class="kw">else if </span>mode == vk::PresentModeKHR::FIFO_RELAXED {
1487-
<span class="prelude-val">Some</span>(wgt::PresentMode::FifoRelaxed)
1488-
} <span class="kw">else </span>{
1489-
<span class="macro">log::warn!</span>(<span class="string">"Unrecognized present mode {:?}"</span>, mode);
1490-
<span class="prelude-val">None
1491-
</span>}
1488+
<span class="comment">// Not exposed in Ash yet.
1489+
</span><span class="kw">const </span>FIFO_LATEST_READY: vk::PresentModeKHR = vk::PresentModeKHR::from_raw(<span class="number">1_000_361_000</span>);
1490+
1491+
<span class="comment">// See https://registry.khronos.org/vulkan/specs/latest/man/html/VkPresentModeKHR.html
1492+
</span><span class="kw">match </span>mode {
1493+
vk::PresentModeKHR::IMMEDIATE =&gt; <span class="prelude-val">Some</span>(wgt::PresentMode::Immediate),
1494+
vk::PresentModeKHR::MAILBOX =&gt; <span class="prelude-val">Some</span>(wgt::PresentMode::Mailbox),
1495+
vk::PresentModeKHR::FIFO =&gt; <span class="prelude-val">Some</span>(wgt::PresentMode::Fifo),
1496+
vk::PresentModeKHR::FIFO_RELAXED =&gt; <span class="prelude-val">Some</span>(wgt::PresentMode::FifoRelaxed),
1497+
1498+
<span class="comment">// Modes that aren't exposed yet.
1499+
</span>vk::PresentModeKHR::SHARED_DEMAND_REFRESH =&gt; <span class="prelude-val">None</span>,
1500+
vk::PresentModeKHR::SHARED_CONTINUOUS_REFRESH =&gt; <span class="prelude-val">None</span>,
1501+
FIFO_LATEST_READY =&gt; <span class="prelude-val">None</span>,
1502+
1503+
<span class="kw">_ </span>=&gt; {
1504+
<span class="macro">log::debug!</span>(<span class="string">"Unrecognized present mode {:?}"</span>, mode);
1505+
<span class="prelude-val">None
1506+
</span>}
1507+
}
14921508
}
14931509

14941510
<span class="kw">pub fn </span>map_composite_alpha_mode(mode: wgt::CompositeAlphaMode) -&gt; vk::CompositeAlphaFlagsKHR {

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)