Skip to content

Commit 2541d4c

Browse files
Deploying to master from @ gfx-rs/wgpu@12ce4e2 🚀
1 parent 190c781 commit 2541d4c

File tree

9 files changed

+51
-31
lines changed

9 files changed

+51
-31
lines changed

doc/src/wgpu_hal/vulkan/drm.rs.html

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,11 @@
145145
<a href="#144" id="144">144</a>
146146
<a href="#145" id="145">145</a>
147147
<a href="#146" id="146">146</a>
148-
<a href="#147" id="147">147</a></pre></div><pre class="rust"><code><span class="attr">#![cfg(all(unix, not(target_vendor = <span class="string">"apple"</span>), not(target_family = <span class="string">"wasm"</span>)))]
148+
<a href="#147" id="147">147</a>
149+
<a href="#148" id="148">148</a>
150+
<a href="#149" id="149">149</a>
151+
<a href="#150" id="150">150</a>
152+
<a href="#151" id="151">151</a></pre></div><pre class="rust"><code><span class="attr">#![cfg(all(unix, not(target_vendor = <span class="string">"apple"</span>), not(target_family = <span class="string">"wasm"</span>)))]
149153

150154
</span><span class="kw">use </span>core::mem::MaybeUninit;
151155
<span class="kw">use </span>std::{string::ToString, vec::Vec};
@@ -167,9 +171,13 @@
167171
height: u32,
168172
refresh_rate: u32,
169173
) -&gt; <span class="prelude-ty">Result</span>&lt;<span class="kw">super</span>::Surface, <span class="kw">crate</span>::InstanceError&gt; {
170-
<span class="kw">if </span>!<span class="self">self</span>.shared.extensions.contains(<span class="kw-2">&amp;</span>khr::display::NAME) {
174+
<span class="kw">if </span>!<span class="self">self
175+
</span>.shared
176+
.extensions
177+
.contains(<span class="kw-2">&amp;</span>ext::acquire_drm_display::NAME)
178+
{
171179
<span class="kw">return </span><span class="prelude-val">Err</span>(<span class="kw">crate</span>::InstanceError::new(
172-
<span class="string">"Vulkan driver does not support VK_KHR_display"</span>.to_string(),
180+
<span class="string">"Vulkan driver does not support VK_EXT_acquire_drm_display"</span>.to_string(),
173181
));
174182
}
175183

doc/src/wgpu_hal/vulkan/instance.rs.html

Lines changed: 20 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1133,7 +1133,13 @@
11331133
<a href="#1132" id="1132">1132</a>
11341134
<a href="#1133" id="1133">1133</a>
11351135
<a href="#1134" id="1134">1134</a>
1136-
<a href="#1135" id="1135">1135</a></pre></div><pre class="rust"><code><span class="kw">use </span>std::{
1136+
<a href="#1135" id="1135">1135</a>
1137+
<a href="#1136" id="1136">1136</a>
1138+
<a href="#1137" id="1137">1137</a>
1139+
<a href="#1138" id="1138">1138</a>
1140+
<a href="#1139" id="1139">1139</a>
1141+
<a href="#1140" id="1140">1140</a>
1142+
<a href="#1141" id="1141">1141</a></pre></div><pre class="rust"><code><span class="kw">use </span>std::{
11371143
borrow::ToOwned <span class="kw">as _</span>,
11381144
boxed::Box,
11391145
ffi::{c_void, CStr, CString},
@@ -1392,13 +1398,6 @@
13921398
<span class="comment">// VK_KHR_surface
13931399
</span>extensions.push(khr::surface::NAME);
13941400

1395-
<span class="comment">// Extensions needed for drm support
1396-
</span>extensions.push(khr::display::NAME);
1397-
extensions.push(ext::physical_device_drm::NAME);
1398-
extensions.push(khr::get_display_properties2::NAME);
1399-
extensions.push(ext::direct_mode_display::NAME);
1400-
extensions.push(ext::acquire_drm_display::NAME);
1401-
14021401
<span class="comment">// Platform-specific WSI extensions
14031402
</span><span class="kw">if </span><span class="macro">cfg!</span>(all(
14041403
unix,
@@ -1425,6 +1424,19 @@
14251424
</span>extensions.push(ext::metal_surface::NAME);
14261425
extensions.push(khr::portability_enumeration::NAME);
14271426
}
1427+
<span class="kw">if </span><span class="macro">cfg!</span>(all(
1428+
unix,
1429+
not(target_vendor = <span class="string">"apple"</span>),
1430+
not(target_family = <span class="string">"wasm"</span>)
1431+
)) {
1432+
<span class="comment">// VK_EXT_acquire_drm_display -&gt; VK_EXT_direct_mode_display -&gt; VK_KHR_display
1433+
</span>extensions.push(ext::acquire_drm_display::NAME);
1434+
extensions.push(ext::direct_mode_display::NAME);
1435+
extensions.push(khr::display::NAME);
1436+
<span class="comment">// VK_EXT_physical_device_drm -&gt; VK_KHR_get_physical_device_properties2
1437+
</span>extensions.push(ext::physical_device_drm::NAME);
1438+
extensions.push(khr::get_display_properties2::NAME);
1439+
}
14281440

14291441
<span class="kw">if </span>flags.contains(wgt::InstanceFlags::DEBUG) {
14301442
<span class="comment">// VK_EXT_debug_utils

doc/wgpu_hal/trait.Instance.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,4 @@
2020
&amp;self,
2121
surface_hint: <a class="enum" href="https://doc.rust-lang.org/1.85.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;&amp;&lt;Self::<a class="associatedtype" href="trait.Instance.html#associatedtype.A" title="type wgpu_hal::Instance::A">A</a> as <a class="trait" href="trait.Api.html" title="trait wgpu_hal::Api">Api</a>&gt;::<a class="associatedtype" href="trait.Api.html#associatedtype.Surface" title="type wgpu_hal::Api::Surface">Surface</a>&gt;,
2222
) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.85.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="struct" href="struct.ExposedAdapter.html" title="struct wgpu_hal::ExposedAdapter">ExposedAdapter</a>&lt;Self::<a class="associatedtype" href="trait.Instance.html#associatedtype.A" title="type wgpu_hal::Instance::A">A</a>&gt;&gt;</h4></section></summary><div class="docblock"><p><code>surface_hint</code> is only used by the GLES backend targeting WebGL2</p>
23-
</div></details></div><h2 id="dyn-compatibility" class="section-header">Dyn Compatibility<a href="#dyn-compatibility" class="anchor">§</a></h2><div class="dyn-compatibility-info"><p>This trait is <b>not</b> <a href="https://doc.rust-lang.org/1.85.0/reference/items/traits.html#object-safety">dyn compatible</a>.</p><p><i>In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.</i></p></div><h2 id="implementors" class="section-header">Implementors<a href="#implementors" class="anchor">§</a></h2><div id="implementors-list"><details class="toggle implementors-toggle"><summary><section id="impl-Instance-for-Instance" class="impl"><a class="src rightside" href="../src/wgpu_hal/gles/egl.rs.html#788-1126">Source</a><a href="#impl-Instance-for-Instance" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.Instance.html" title="trait wgpu_hal::Instance">Instance</a> for wgpu_hal::gles::egl::<a class="struct" href="gles/egl/struct.Instance.html" title="struct wgpu_hal::gles::egl::Instance">Instance</a></h3><span class="item-info"><div class="stab portability">Available on <strong>neither Windows nor <code>webgl</code> and <code>gles</code></strong> only.</div></span></section></summary><div class="impl-items"><section id="associatedtype.A-1" class="associatedtype trait-impl"><a class="src rightside" href="../src/wgpu_hal/gles/egl.rs.html#789">Source</a><a href="#associatedtype.A-1" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.A" class="associatedtype">A</a> = <a class="struct" href="gles/struct.Api.html" title="struct wgpu_hal::gles::Api">Api</a></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Instance-for-Context" class="impl"><a class="src rightside" href="../src/wgpu_hal/noop/mod.rs.html#86-133">Source</a><a href="#impl-Instance-for-Context" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.Instance.html" title="trait wgpu_hal::Instance">Instance</a> for <a class="struct" href="noop/struct.Context.html" title="struct wgpu_hal::noop::Context">Context</a></h3></section></summary><div class="impl-items"><section id="associatedtype.A-2" class="associatedtype trait-impl"><a class="src rightside" href="../src/wgpu_hal/noop/mod.rs.html#87">Source</a><a href="#associatedtype.A-2" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.A" class="associatedtype">A</a> = <a class="struct" href="noop/struct.Api.html" title="struct wgpu_hal::noop::Api">Api</a></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Instance-for-Instance-1" class="impl"><a class="src rightside" href="../src/wgpu_hal/vulkan/instance.rs.html#589-972">Source</a><a href="#impl-Instance-for-Instance-1" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.Instance.html" title="trait wgpu_hal::Instance">Instance</a> for wgpu_hal::vulkan::<a class="struct" href="vulkan/struct.Instance.html" title="struct wgpu_hal::vulkan::Instance">Instance</a></h3><span class="item-info"><div class="stab portability">Available on <strong><code>vulkan</code></strong> only.</div></span></section></summary><div class="impl-items"><section id="associatedtype.A-3" class="associatedtype trait-impl"><a class="src rightside" href="../src/wgpu_hal/vulkan/instance.rs.html#590">Source</a><a href="#associatedtype.A-3" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.A" class="associatedtype">A</a> = <a class="struct" href="vulkan/struct.Api.html" title="struct wgpu_hal::vulkan::Api">Api</a></h4></section></div></details></div><script src="../trait.impl/wgpu_hal/trait.Instance.js" async></script></section></div></main></body></html>
23+
</div></details></div><h2 id="dyn-compatibility" class="section-header">Dyn Compatibility<a href="#dyn-compatibility" class="anchor">§</a></h2><div class="dyn-compatibility-info"><p>This trait is <b>not</b> <a href="https://doc.rust-lang.org/1.85.0/reference/items/traits.html#object-safety">dyn compatible</a>.</p><p><i>In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.</i></p></div><h2 id="implementors" class="section-header">Implementors<a href="#implementors" class="anchor">§</a></h2><div id="implementors-list"><details class="toggle implementors-toggle"><summary><section id="impl-Instance-for-Instance" class="impl"><a class="src rightside" href="../src/wgpu_hal/gles/egl.rs.html#788-1126">Source</a><a href="#impl-Instance-for-Instance" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.Instance.html" title="trait wgpu_hal::Instance">Instance</a> for wgpu_hal::gles::egl::<a class="struct" href="gles/egl/struct.Instance.html" title="struct wgpu_hal::gles::egl::Instance">Instance</a></h3><span class="item-info"><div class="stab portability">Available on <strong>neither Windows nor <code>webgl</code> and <code>gles</code></strong> only.</div></span></section></summary><div class="impl-items"><section id="associatedtype.A-1" class="associatedtype trait-impl"><a class="src rightside" href="../src/wgpu_hal/gles/egl.rs.html#789">Source</a><a href="#associatedtype.A-1" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.A" class="associatedtype">A</a> = <a class="struct" href="gles/struct.Api.html" title="struct wgpu_hal::gles::Api">Api</a></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Instance-for-Context" class="impl"><a class="src rightside" href="../src/wgpu_hal/noop/mod.rs.html#86-133">Source</a><a href="#impl-Instance-for-Context" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.Instance.html" title="trait wgpu_hal::Instance">Instance</a> for <a class="struct" href="noop/struct.Context.html" title="struct wgpu_hal::noop::Context">Context</a></h3></section></summary><div class="impl-items"><section id="associatedtype.A-2" class="associatedtype trait-impl"><a class="src rightside" href="../src/wgpu_hal/noop/mod.rs.html#87">Source</a><a href="#associatedtype.A-2" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.A" class="associatedtype">A</a> = <a class="struct" href="noop/struct.Api.html" title="struct wgpu_hal::noop::Api">Api</a></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Instance-for-Instance-1" class="impl"><a class="src rightside" href="../src/wgpu_hal/vulkan/instance.rs.html#595-978">Source</a><a href="#impl-Instance-for-Instance-1" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.Instance.html" title="trait wgpu_hal::Instance">Instance</a> for wgpu_hal::vulkan::<a class="struct" href="vulkan/struct.Instance.html" title="struct wgpu_hal::vulkan::Instance">Instance</a></h3><span class="item-info"><div class="stab portability">Available on <strong><code>vulkan</code></strong> only.</div></span></section></summary><div class="impl-items"><section id="associatedtype.A-3" class="associatedtype trait-impl"><a class="src rightside" href="../src/wgpu_hal/vulkan/instance.rs.html#596">Source</a><a href="#associatedtype.A-3" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.A" class="associatedtype">A</a> = <a class="struct" href="vulkan/struct.Api.html" title="struct wgpu_hal::vulkan::Api">Api</a></h4></section></div></details></div><script src="../trait.impl/wgpu_hal/trait.Instance.js" async></script></section></div></main></body></html>

doc/wgpu_hal/trait.Surface.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,4 +90,4 @@ <h5 id="safety-3"><a class="doc-anchor" href="#safety-3">§</a>Safety</h5>
9090
<a href="trait.Queue.html#tymethod.present" title="method wgpu_hal::Queue::present"><code>Queue::present</code></a>.</p>
9191
</li>
9292
</ul>
93-
</div></details></div><h2 id="implementors" class="section-header">Implementors<a href="#implementors" class="anchor">§</a></h2><div id="implementors-list"><details class="toggle implementors-toggle"><summary><section id="impl-Surface-for-Surface" class="impl"><a class="src rightside" href="../src/wgpu_hal/gles/egl.rs.html#1295-1548">Source</a><a href="#impl-Surface-for-Surface" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.Surface.html" title="trait wgpu_hal::Surface">Surface</a> for wgpu_hal::gles::egl::<a class="struct" href="gles/egl/struct.Surface.html" title="struct wgpu_hal::gles::egl::Surface">Surface</a></h3><span class="item-info"><div class="stab portability">Available on <strong>neither Windows nor <code>webgl</code> and <code>gles</code></strong> only.</div></span></section></summary><div class="impl-items"><section id="associatedtype.A-1" class="associatedtype trait-impl"><a class="src rightside" href="../src/wgpu_hal/gles/egl.rs.html#1296">Source</a><a href="#associatedtype.A-1" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.A" class="associatedtype">A</a> = <a class="struct" href="gles/struct.Api.html" title="struct wgpu_hal::gles::Api">Api</a></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Surface-for-Context" class="impl"><a class="src rightside" href="../src/wgpu_hal/noop/mod.rs.html#196-217">Source</a><a href="#impl-Surface-for-Context" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.Surface.html" title="trait wgpu_hal::Surface">Surface</a> for <a class="struct" href="noop/struct.Context.html" title="struct wgpu_hal::noop::Context">Context</a></h3></section></summary><div class="impl-items"><section id="associatedtype.A-2" class="associatedtype trait-impl"><a class="src rightside" href="../src/wgpu_hal/noop/mod.rs.html#197">Source</a><a href="#associatedtype.A-2" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.A" class="associatedtype">A</a> = <a class="struct" href="noop/struct.Api.html" title="struct wgpu_hal::noop::Api">Api</a></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Surface-for-Surface-1" class="impl"><a class="src rightside" href="../src/wgpu_hal/vulkan/instance.rs.html#980-1135">Source</a><a href="#impl-Surface-for-Surface-1" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.Surface.html" title="trait wgpu_hal::Surface">Surface</a> for wgpu_hal::vulkan::<a class="struct" href="vulkan/struct.Surface.html" title="struct wgpu_hal::vulkan::Surface">Surface</a></h3><span class="item-info"><div class="stab portability">Available on <strong><code>vulkan</code></strong> only.</div></span></section></summary><div class="impl-items"><section id="associatedtype.A-3" class="associatedtype trait-impl"><a class="src rightside" href="../src/wgpu_hal/vulkan/instance.rs.html#981">Source</a><a href="#associatedtype.A-3" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.A" class="associatedtype">A</a> = <a class="struct" href="vulkan/struct.Api.html" title="struct wgpu_hal::vulkan::Api">Api</a></h4></section></div></details></div><script src="../trait.impl/wgpu_hal/trait.Surface.js" async></script></section></div></main></body></html>
93+
</div></details></div><h2 id="implementors" class="section-header">Implementors<a href="#implementors" class="anchor">§</a></h2><div id="implementors-list"><details class="toggle implementors-toggle"><summary><section id="impl-Surface-for-Surface" class="impl"><a class="src rightside" href="../src/wgpu_hal/gles/egl.rs.html#1295-1548">Source</a><a href="#impl-Surface-for-Surface" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.Surface.html" title="trait wgpu_hal::Surface">Surface</a> for wgpu_hal::gles::egl::<a class="struct" href="gles/egl/struct.Surface.html" title="struct wgpu_hal::gles::egl::Surface">Surface</a></h3><span class="item-info"><div class="stab portability">Available on <strong>neither Windows nor <code>webgl</code> and <code>gles</code></strong> only.</div></span></section></summary><div class="impl-items"><section id="associatedtype.A-1" class="associatedtype trait-impl"><a class="src rightside" href="../src/wgpu_hal/gles/egl.rs.html#1296">Source</a><a href="#associatedtype.A-1" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.A" class="associatedtype">A</a> = <a class="struct" href="gles/struct.Api.html" title="struct wgpu_hal::gles::Api">Api</a></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Surface-for-Context" class="impl"><a class="src rightside" href="../src/wgpu_hal/noop/mod.rs.html#196-217">Source</a><a href="#impl-Surface-for-Context" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.Surface.html" title="trait wgpu_hal::Surface">Surface</a> for <a class="struct" href="noop/struct.Context.html" title="struct wgpu_hal::noop::Context">Context</a></h3></section></summary><div class="impl-items"><section id="associatedtype.A-2" class="associatedtype trait-impl"><a class="src rightside" href="../src/wgpu_hal/noop/mod.rs.html#197">Source</a><a href="#associatedtype.A-2" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.A" class="associatedtype">A</a> = <a class="struct" href="noop/struct.Api.html" title="struct wgpu_hal::noop::Api">Api</a></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Surface-for-Surface-1" class="impl"><a class="src rightside" href="../src/wgpu_hal/vulkan/instance.rs.html#986-1141">Source</a><a href="#impl-Surface-for-Surface-1" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.Surface.html" title="trait wgpu_hal::Surface">Surface</a> for wgpu_hal::vulkan::<a class="struct" href="vulkan/struct.Surface.html" title="struct wgpu_hal::vulkan::Surface">Surface</a></h3><span class="item-info"><div class="stab portability">Available on <strong><code>vulkan</code></strong> only.</div></span></section></summary><div class="impl-items"><section id="associatedtype.A-3" class="associatedtype trait-impl"><a class="src rightside" href="../src/wgpu_hal/vulkan/instance.rs.html#987">Source</a><a href="#associatedtype.A-3" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.A" class="associatedtype">A</a> = <a class="struct" href="vulkan/struct.Api.html" title="struct wgpu_hal::vulkan::Api">Api</a></h4></section></div></details></div><script src="../trait.impl/wgpu_hal/trait.Surface.js" async></script></section></div></main></body></html>

0 commit comments

Comments
 (0)