You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<ahref=#208id=208data-nosnippet>208</a><spanclass="comment">// this happens on the GL backend, where it is both thread safe and non-thread safe in the same code.
) -> <aclass="enum" href="https://doc.rust-lang.org/1.88.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><impl <aclass="trait" href="https://doc.rust-lang.org/1.88.0/core/ops/deref/trait.Deref.html" title="trait core::ops::deref::Deref">Deref</a><Target = A::<aclass="associatedtype" href="../../../wgpu_hal/trait.Api.html#associatedtype.Adapter" title="type wgpu_hal::Api::Adapter">Adapter</a>> + <aclass="trait" href="../../trait.WasmNotSendSync.html" title="trait wgpu::WasmNotSendSync">WasmNotSendSync</a>></h4></section><spanclass="item-info"><divclass="stab portability">Available on <strong><code>wgpu_core</code></strong> only.</div></span></summary><divclass="docblock"><p>Get the <ahref="../../../wgpu_hal/index.html" title="mod wgpu_hal"><code>wgpu_hal</code></a> adapter from this <code>Adapter</code>.</p>
39
+
) -> <aclass="enum" href="https://doc.rust-lang.org/1.88.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><impl <aclass="trait" href="https://doc.rust-lang.org/1.88.0/core/ops/deref/trait.Deref.html" title="trait core::ops::deref::Deref">Deref</a><Target = A::<aclass="associatedtype" href="../../../wgpu_hal/trait.Api.html#associatedtype.Adapter" title="type wgpu_hal::Api::Adapter">Adapter</a>> + <aclass="trait" href="../../trait.WasmNotSendSync.html" title="trait wgpu::WasmNotSendSync">WasmNotSendSync</a>></h4></section></summary><divclass="docblock"><p>Get the <ahref="../../../wgpu_hal/index.html" title="mod wgpu_hal"><code>wgpu_hal</code></a> adapter from this <code>Adapter</code>.</p>
40
40
<p>Find the Api struct corresponding to the active backend in <ahref="../../../wgpu_hal/api/index.html" title="mod wgpu_hal::api"><code>wgpu_hal::api</code></a>,
41
41
and pass that struct to the to the <code>A</code> type parameter.</p>
42
42
<p>Returns a guard that dereferences to the type of the hal backend
</div></details><detailsclass="toggle method-toggle" open><summary><sectionid="method.is_surface_supported" class="method"><aclass="src rightside" href="../../../src/wgpu/api/adapter.rs.html#153-155">Source</a><h4class="code-header">pub fn <ahref="#method.is_surface_supported" class="fn">is_surface_supported</a>(&self, surface: &<aclass="struct" href="../../struct.Surface.html" title="struct wgpu::Surface">Surface</a><'_>) -> <aclass="primitive" href="https://doc.rust-lang.org/1.88.0/std/primitive.bool.html">bool</a></h4></section></summary><divclass="docblock"><p>Returns whether this adapter may present to the passed surface.</p>
68
68
</div></details><detailsclass="toggle method-toggle" open><summary><sectionid="method.features" class="method"><aclass="src rightside" href="../../../src/wgpu/api/adapter.rs.html#158-160">Source</a><h4class="code-header">pub fn <ahref="#method.features" class="fn">features</a>(&self) -> <aclass="struct" href="../../struct.Features.html" title="struct wgpu::Features">Features</a></h4></section></summary><divclass="docblock"><p>The features which can be used to create devices on this adapter.</p>
69
69
</div></details><detailsclass="toggle method-toggle" open><summary><sectionid="method.limits" class="method"><aclass="src rightside" href="../../../src/wgpu/api/adapter.rs.html#163-165">Source</a><h4class="code-header">pub fn <ahref="#method.limits" class="fn">limits</a>(&self) -> <aclass="struct" href="../../struct.Limits.html" title="struct wgpu::Limits">Limits</a></h4></section></summary><divclass="docblock"><p>The best limits which can be used to create devices on this adapter.</p>
0 commit comments