71 lines
40 KiB
HTML
71 lines
40 KiB
HTML
<!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="API documentation for the Rust `Adapter` struct in crate `wgpu_hal`."><title>Adapter in wgpu_hal::vulkan - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-Medium-e1aa3f0a.woff2,SourceCodePro-Regular-8badfe75.ttf.woff2,SourceCodePro-Semibold-aa29a496.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-9960930a.css"><link rel="stylesheet" href="../../static.files/rustdoc-42caa33d.css"><meta name="rustdoc-vars" data-root-path="../../" data-static-root-path="../../static.files/" data-current-crate="wgpu_hal" data-themes="" data-resource-suffix="" data-rustdoc-version="1.84.0 (9fc6b4312 2025-01-07)" data-channel="1.84.0" data-search-js="search-92e6798f.js" data-settings-js="settings-0f613d39.js" ><script src="../../static.files/storage-59e33391.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../static.files/main-5f194d8c.js"></script><noscript><link rel="stylesheet" href="../../static.files/noscript-893ab5e7.css"></noscript><link rel="alternate icon" type="image/png" href="../../static.files/favicon-32x32-6580c154.png"><link rel="icon" type="image/svg+xml" href="../../static.files/favicon-044be391.svg"></head><body class="rustdoc struct"><!--[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_hal/index.html">wgpu_<wbr>hal</a><span class="version">23.0.1</span></h2></div><div class="sidebar-elems"><section id="rustdoc-toc"><h2 class="location"><a href="#">Adapter</a></h2><h3><a href="#implementations">Methods</a></h3><ul class="block method"><li><a href="#method.device_from_raw" title="device_from_raw">device_from_raw</a></li><li><a href="#method.physical_device_capabilities" title="physical_device_capabilities">physical_device_capabilities</a></li><li><a href="#method.physical_device_features" title="physical_device_features">physical_device_features</a></li><li><a href="#method.raw_physical_device" title="raw_physical_device">raw_physical_device</a></li><li><a href="#method.required_device_extensions" title="required_device_extensions">required_device_extensions</a></li><li><a href="#method.shared_instance" title="shared_instance">shared_instance</a></li></ul><h3><a href="#trait-implementations">Trait Implementations</a></h3><ul class="block trait-implementation"><li><a href="#impl-Adapter-for-Adapter" title="Adapter">Adapter</a></li><li><a href="#impl-DynResource-for-Adapter" title="DynResource">DynResource</a></li></ul><h3><a href="#synthetic-implementations">Auto Trait Implementations</a></h3><ul class="block synthetic-implementation"><li><a href="#impl-RefUnwindSafe-for-Adapter" title="!RefUnwindSafe">!RefUnwindSafe</a></li><li><a href="#impl-UnwindSafe-for-Adapter" title="!UnwindSafe">!UnwindSafe</a></li><li><a href="#impl-Freeze-for-Adapter" title="Freeze">Freeze</a></li><li><a href="#impl-Send-for-Adapter" title="Send">Send</a></li><li><a href="#impl-Sync-for-Adapter" title="Sync">Sync</a></li><li><a href="#impl-Unpin-for-Adapter" title="Unpin">Unpin</a></li></ul><h3><a href="#blanket-implementations">Blanket Implementations</a></h3><ul class="block blanket-implementation"><li><a href="#impl-Any-for-T" title="Any">Any</a></li><li><a href="#impl-Borrow%3CT%3E-for-T" title="Borrow<T>">Borrow<T></a></li><li><a href="#impl-BorrowMut%3CT%3E-for-T" title="BorrowMut<T>">BorrowMut<T></a></li><li><a href="#impl-Downcast%3CT%3E-for-T" title="Downcast<T>">Downcast<T></a></li><li><a href="#impl-DynAdapter-for-A" title="DynAdapter">DynAdapter</a></li><li><a href="#impl-From%3CT%3E-for-T" title="From<T>">From<T></a></li><li><a href="#impl-Into%3CU%3E-for-T" title="Into<U>">Into<U></a></li><li><a href="#impl-TryFrom%3CU%3E-for-T" title="TryFrom<U>">TryFrom<U></a></li><li><a href="#impl-TryInto%3CU%3E-for-T" title="TryInto<U>">TryInto<U></a></li><li><a href="#impl-Upcast%3CT%3E-for-T" title="Upcast<T>">Upcast<T></a></li><li><a href="#impl-WasmNotSend-for-T" title="WasmNotSend">WasmNotSend</a></li><li><a href="#impl-WasmNotSendSync-for-T" title="WasmNotSendSync">WasmNotSendSync</a></li><li><a href="#impl-WasmNotSync-for-T" title="WasmNotSync">WasmNotSync</a></li></ul></section><div id="rustdoc-modnav"><h2><a href="index.html">In wgpu_<wbr>hal::<wbr>vulkan</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_hal</a>::<wbr><a href="index.html">vulkan</a></span><h1>Struct <span class="struct">Adapter</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_hal/vulkan/mod.rs.html#453-463">Source</a> </span></div><pre class="rust item-decl"><code>pub struct Adapter { <span class="comment">/* private fields */</span> }</code></pre><h2 id="implementations" class="section-header">Implementations<a href="#implementations" class="anchor">§</a></h2><div id="implementations-list"><details class="toggle implementors-toggle" open><summary><section id="impl-Adapter" class="impl"><a class="src rightside" href="../../src/wgpu_hal/vulkan/adapter.rs.html#1586-2010">Source</a><a href="#impl-Adapter" class="anchor">§</a><h3 class="code-header">impl <a class="struct" href="struct.Adapter.html" title="struct wgpu_hal::vulkan::Adapter">Adapter</a></h3></section></summary><div class="impl-items"><section id="method.raw_physical_device" class="method"><a class="src rightside" href="../../src/wgpu_hal/vulkan/adapter.rs.html#1587-1589">Source</a><h4 class="code-header">pub fn <a href="#method.raw_physical_device" class="fn">raw_physical_device</a>(&self) -> <a class="struct" href="../../ash/vk/definitions/struct.PhysicalDevice.html" title="struct ash::vk::definitions::PhysicalDevice">PhysicalDevice</a></h4></section><section id="method.physical_device_capabilities" class="method"><a class="src rightside" href="../../src/wgpu_hal/vulkan/adapter.rs.html#1591-1593">Source</a><h4 class="code-header">pub fn <a href="#method.physical_device_capabilities" class="fn">physical_device_capabilities</a>(&self) -> &PhysicalDeviceProperties</h4></section><section id="method.shared_instance" class="method"><a class="src rightside" href="../../src/wgpu_hal/vulkan/adapter.rs.html#1595-1597">Source</a><h4 class="code-header">pub fn <a href="#method.shared_instance" class="fn">shared_instance</a>(&self) -> &<a class="struct" href="struct.InstanceShared.html" title="struct wgpu_hal::vulkan::InstanceShared">InstanceShared</a></h4></section><section id="method.required_device_extensions" class="method"><a class="src rightside" href="../../src/wgpu_hal/vulkan/adapter.rs.html#1599-1614">Source</a><h4 class="code-header">pub fn <a href="#method.required_device_extensions" class="fn">required_device_extensions</a>(
|
||
&self,
|
||
features: <a class="struct" href="../../wgpu_types/struct.Features.html" title="struct wgpu_types::Features">Features</a>,
|
||
) -> <a class="struct" href="https://doc.rust-lang.org/1.84.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><&'static <a class="struct" href="https://doc.rust-lang.org/1.84.0/core/ffi/c_str/struct.CStr.html" title="struct core::ffi::c_str::CStr">CStr</a>></h4></section><details class="toggle method-toggle" open><summary><section id="method.physical_device_features" class="method"><a class="src rightside" href="../../src/wgpu_hal/vulkan/adapter.rs.html#1630-1642">Source</a><h4 class="code-header">pub fn <a href="#method.physical_device_features" class="fn">physical_device_features</a>(
|
||
&self,
|
||
enabled_extensions: &[&'static <a class="struct" href="https://doc.rust-lang.org/1.84.0/core/ffi/c_str/struct.CStr.html" title="struct core::ffi::c_str::CStr">CStr</a>],
|
||
features: <a class="struct" href="../../wgpu_types/struct.Features.html" title="struct wgpu_types::Features">Features</a>,
|
||
) -> PhysicalDeviceFeatures</h4></section></summary><div class="docblock"><p>Create a <code>PhysicalDeviceFeatures</code> for opening a logical device with
|
||
<code>features</code> from this adapter.</p>
|
||
<p>The given <code>enabled_extensions</code> set must include all the extensions
|
||
selected by <a href="struct.Adapter.html#method.required_device_extensions" title="method wgpu_hal::vulkan::Adapter::required_device_extensions"><code>required_device_extensions</code></a> when passed <code>features</code>.
|
||
Otherwise, the <code>PhysicalDeviceFeatures</code> value may not be able to select
|
||
all the Vulkan features needed to represent <code>features</code> and this
|
||
adapter’s characteristics.</p>
|
||
<p>Typically, you’d simply call <code>required_device_extensions</code>, and then pass
|
||
its return value and the feature set you gave it directly to this
|
||
function. But it’s fine to add more extensions to the list.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.device_from_raw" class="method"><a class="src rightside" href="../../src/wgpu_hal/vulkan/adapter.rs.html#1652-2009">Source</a><h4 class="code-header">pub unsafe fn <a href="#method.device_from_raw" class="fn">device_from_raw</a>(
|
||
&self,
|
||
raw_device: <a class="struct" href="../../ash/device/struct.Device.html" title="struct ash::device::Device">Device</a>,
|
||
drop_callback: <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="type" href="../type.DropCallback.html" title="type wgpu_hal::DropCallback">DropCallback</a>>,
|
||
enabled_extensions: &[&'static <a class="struct" href="https://doc.rust-lang.org/1.84.0/core/ffi/c_str/struct.CStr.html" title="struct core::ffi::c_str::CStr">CStr</a>],
|
||
features: <a class="struct" href="../../wgpu_types/struct.Features.html" title="struct wgpu_types::Features">Features</a>,
|
||
memory_hints: &<a class="enum" href="../../wgpu_types/enum.MemoryHints.html" title="enum wgpu_types::MemoryHints">MemoryHints</a>,
|
||
family_index: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.u32.html">u32</a>,
|
||
queue_index: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.u32.html">u32</a>,
|
||
) -> <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="struct" href="../struct.OpenDevice.html" title="struct wgpu_hal::OpenDevice">OpenDevice</a><<a class="struct" href="struct.Api.html" title="struct wgpu_hal::vulkan::Api">Api</a>>, <a class="enum" href="../enum.DeviceError.html" title="enum wgpu_hal::DeviceError">DeviceError</a>></h4></section></summary><div class="docblock"><h5 id="safety"><a class="doc-anchor" href="#safety">§</a>Safety</h5>
|
||
<ul>
|
||
<li><code>raw_device</code> must be created from this adapter.</li>
|
||
<li><code>raw_device</code> must be created using <code>family_index</code>, <code>enabled_extensions</code> and <code>physical_device_features()</code></li>
|
||
<li><code>enabled_extensions</code> must be a superset of <code>required_device_extensions()</code>.</li>
|
||
<li>If <code>drop_callback</code> is <a href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html#variant.None" title="variant core::option::Option::None"><code>None</code></a>, wgpu-hal will take ownership of <code>raw_device</code>. If
|
||
<code>drop_callback</code> is <a href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html#variant.Some" title="variant core::option::Option::Some"><code>Some</code></a>, <code>raw_device</code> must be valid until the callback is called.</li>
|
||
</ul>
|
||
</div></details></div></details></div><h2 id="trait-implementations" class="section-header">Trait Implementations<a href="#trait-implementations" class="anchor">§</a></h2><div id="trait-implementations-list"><details class="toggle implementors-toggle" open><summary><section id="impl-Adapter-for-Adapter" class="impl"><a class="src rightside" href="../../src/wgpu_hal/vulkan/adapter.rs.html#2012-2324">Source</a><a href="#impl-Adapter-for-Adapter" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="../trait.Adapter.html" title="trait wgpu_hal::Adapter">Adapter</a> for <a class="struct" href="struct.Adapter.html" title="struct wgpu_hal::vulkan::Adapter">Adapter</a></h3></section></summary><div class="impl-items"><section id="associatedtype.A" class="associatedtype trait-impl"><a class="src rightside" href="../../src/wgpu_hal/vulkan/adapter.rs.html#2013">Source</a><a href="#associatedtype.A" class="anchor">§</a><h4 class="code-header">type <a href="../trait.Adapter.html#associatedtype.A" class="associatedtype">A</a> = <a class="struct" href="struct.Api.html" title="struct wgpu_hal::vulkan::Api">Api</a></h4></section><section id="method.open" class="method trait-impl"><a class="src rightside" href="../../src/wgpu_hal/vulkan/adapter.rs.html#2015-2073">Source</a><a href="#method.open" class="anchor">§</a><h4 class="code-header">unsafe fn <a href="../trait.Adapter.html#tymethod.open" class="fn">open</a>(
|
||
&self,
|
||
features: <a class="struct" href="../../wgpu_types/struct.Features.html" title="struct wgpu_types::Features">Features</a>,
|
||
_limits: &<a class="struct" href="../../wgpu_types/struct.Limits.html" title="struct wgpu_types::Limits">Limits</a>,
|
||
memory_hints: &<a class="enum" href="../../wgpu_types/enum.MemoryHints.html" title="enum wgpu_types::MemoryHints">MemoryHints</a>,
|
||
) -> <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="struct" href="../struct.OpenDevice.html" title="struct wgpu_hal::OpenDevice">OpenDevice</a><<a class="struct" href="struct.Api.html" title="struct wgpu_hal::vulkan::Api">Api</a>>, <a class="enum" href="../enum.DeviceError.html" title="enum wgpu_hal::DeviceError">DeviceError</a>></h4></section><details class="toggle method-toggle" open><summary><section id="method.texture_format_capabilities" class="method trait-impl"><a class="src rightside" href="../../src/wgpu_hal/vulkan/adapter.rs.html#2075-2185">Source</a><a href="#method.texture_format_capabilities" class="anchor">§</a><h4 class="code-header">unsafe fn <a href="../trait.Adapter.html#tymethod.texture_format_capabilities" class="fn">texture_format_capabilities</a>(
|
||
&self,
|
||
format: <a class="enum" href="../../wgpu_types/enum.TextureFormat.html" title="enum wgpu_types::TextureFormat">TextureFormat</a>,
|
||
) -> <a class="struct" href="../struct.TextureFormatCapabilities.html" title="struct wgpu_hal::TextureFormatCapabilities">TextureFormatCapabilities</a></h4></section></summary><div class='docblock'>Return the set of supported capabilities for a texture format.</div></details><details class="toggle method-toggle" open><summary><section id="method.surface_capabilities" class="method trait-impl"><a class="src rightside" href="../../src/wgpu_hal/vulkan/adapter.rs.html#2187-2298">Source</a><a href="#method.surface_capabilities" class="anchor">§</a><h4 class="code-header">unsafe fn <a href="../trait.Adapter.html#tymethod.surface_capabilities" class="fn">surface_capabilities</a>(
|
||
&self,
|
||
surface: &<a class="struct" href="struct.Surface.html" title="struct wgpu_hal::vulkan::Surface">Surface</a>,
|
||
) -> <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="../struct.SurfaceCapabilities.html" title="struct wgpu_hal::SurfaceCapabilities">SurfaceCapabilities</a>></h4></section></summary><div class='docblock'>Returns the capabilities of working with a specified surface. <a href="../trait.Adapter.html#tymethod.surface_capabilities">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.get_presentation_timestamp" class="method trait-impl"><a class="src rightside" href="../../src/wgpu_hal/vulkan/adapter.rs.html#2300-2323">Source</a><a href="#method.get_presentation_timestamp" class="anchor">§</a><h4 class="code-header">unsafe fn <a href="../trait.Adapter.html#tymethod.get_presentation_timestamp" class="fn">get_presentation_timestamp</a>(&self) -> <a class="struct" href="../../wgpu_types/struct.PresentationTimestamp.html" title="struct wgpu_types::PresentationTimestamp">PresentationTimestamp</a></h4></section></summary><div class='docblock'>Creates a <a href="../../wgpu_types/struct.PresentationTimestamp.html" title="struct wgpu_types::PresentationTimestamp"><code>PresentationTimestamp</code></a> using the adapter’s WSI.</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-DynResource-for-Adapter" class="impl"><a class="src rightside" href="../../src/wgpu_hal/vulkan/mod.rs.html#81-104">Source</a><a href="#impl-DynResource-for-Adapter" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="../trait.DynResource.html" title="trait wgpu_hal::DynResource">DynResource</a> for <a class="struct" href="struct.Adapter.html" title="struct wgpu_hal::vulkan::Adapter">Adapter</a></h3></section></summary><div class="impl-items"><section id="method.as_any" class="method trait-impl"><a class="src rightside" href="../../src/wgpu_hal/vulkan/mod.rs.html#81-104">Source</a><a href="#method.as_any" class="anchor">§</a><h4 class="code-header">fn <a href="../trait.DynResource.html#tymethod.as_any" class="fn">as_any</a>(&self) -> &dyn <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/any/trait.Any.html" title="trait core::any::Any">Any</a></h4></section><section id="method.as_any_mut" class="method trait-impl"><a class="src rightside" href="../../src/wgpu_hal/vulkan/mod.rs.html#81-104">Source</a><a href="#method.as_any_mut" class="anchor">§</a><h4 class="code-header">fn <a href="../trait.DynResource.html#tymethod.as_any_mut" class="fn">as_any_mut</a>(&mut self) -> &mut dyn <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/any/trait.Any.html" title="trait core::any::Any">Any</a></h4></section></div></details></div><h2 id="synthetic-implementations" class="section-header">Auto Trait Implementations<a href="#synthetic-implementations" class="anchor">§</a></h2><div id="synthetic-implementations-list"><section id="impl-Freeze-for-Adapter" class="impl"><a href="#impl-Freeze-for-Adapter" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Freeze.html" title="trait core::marker::Freeze">Freeze</a> for <a class="struct" href="struct.Adapter.html" title="struct wgpu_hal::vulkan::Adapter">Adapter</a></h3></section><section id="impl-RefUnwindSafe-for-Adapter" class="impl"><a href="#impl-RefUnwindSafe-for-Adapter" class="anchor">§</a><h3 class="code-header">impl !<a class="trait" href="https://doc.rust-lang.org/1.84.0/core/panic/unwind_safe/trait.RefUnwindSafe.html" title="trait core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a> for <a class="struct" href="struct.Adapter.html" title="struct wgpu_hal::vulkan::Adapter">Adapter</a></h3></section><section id="impl-Send-for-Adapter" class="impl"><a href="#impl-Send-for-Adapter" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> for <a class="struct" href="struct.Adapter.html" title="struct wgpu_hal::vulkan::Adapter">Adapter</a></h3></section><section id="impl-Sync-for-Adapter" class="impl"><a href="#impl-Sync-for-Adapter" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a> for <a class="struct" href="struct.Adapter.html" title="struct wgpu_hal::vulkan::Adapter">Adapter</a></h3></section><section id="impl-Unpin-for-Adapter" class="impl"><a href="#impl-Unpin-for-Adapter" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a> for <a class="struct" href="struct.Adapter.html" title="struct wgpu_hal::vulkan::Adapter">Adapter</a></h3></section><section id="impl-UnwindSafe-for-Adapter" class="impl"><a href="#impl-UnwindSafe-for-Adapter" class="anchor">§</a><h3 class="code-header">impl !<a class="trait" href="https://doc.rust-lang.org/1.84.0/core/panic/unwind_safe/trait.UnwindSafe.html" title="trait core::panic::unwind_safe::UnwindSafe">UnwindSafe</a> for <a class="struct" href="struct.Adapter.html" title="struct wgpu_hal::vulkan::Adapter">Adapter</a></h3></section></div><h2 id="blanket-implementations" class="section-header">Blanket Implementations<a href="#blanket-implementations" class="anchor">§</a></h2><div id="blanket-implementations-list"><details class="toggle implementors-toggle"><summary><section id="impl-Any-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/1.84.0/src/core/any.rs.html#138">Source</a><a href="#impl-Any-for-T" class="anchor">§</a><h3 class="code-header">impl<T> <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/any/trait.Any.html" title="trait core::any::Any">Any</a> for T<div class="where">where
|
||
T: 'static + ?<a class="trait" href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.type_id" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.84.0/src/core/any.rs.html#139">Source</a><a href="#method.type_id" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.84.0/core/any/trait.Any.html#tymethod.type_id" class="fn">type_id</a>(&self) -> <a class="struct" href="https://doc.rust-lang.org/1.84.0/core/any/struct.TypeId.html" title="struct core::any::TypeId">TypeId</a></h4></section></summary><div class='docblock'>Gets the <code>TypeId</code> of <code>self</code>. <a href="https://doc.rust-lang.org/1.84.0/core/any/trait.Any.html#tymethod.type_id">Read more</a></div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Borrow%3CT%3E-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/1.84.0/src/core/borrow.rs.html#209">Source</a><a href="#impl-Borrow%3CT%3E-for-T" class="anchor">§</a><h3 class="code-header">impl<T> <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/borrow/trait.Borrow.html" title="trait core::borrow::Borrow">Borrow</a><T> for T<div class="where">where
|
||
T: ?<a class="trait" href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.borrow" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.84.0/src/core/borrow.rs.html#211">Source</a><a href="#method.borrow" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.84.0/core/borrow/trait.Borrow.html#tymethod.borrow" class="fn">borrow</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.reference.html">&T</a></h4></section></summary><div class='docblock'>Immutably borrows from an owned value. <a href="https://doc.rust-lang.org/1.84.0/core/borrow/trait.Borrow.html#tymethod.borrow">Read more</a></div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-BorrowMut%3CT%3E-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/1.84.0/src/core/borrow.rs.html#217">Source</a><a href="#impl-BorrowMut%3CT%3E-for-T" class="anchor">§</a><h3 class="code-header">impl<T> <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/borrow/trait.BorrowMut.html" title="trait core::borrow::BorrowMut">BorrowMut</a><T> for T<div class="where">where
|
||
T: ?<a class="trait" href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.borrow_mut" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.84.0/src/core/borrow.rs.html#218">Source</a><a href="#method.borrow_mut" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.84.0/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut" class="fn">borrow_mut</a>(&mut self) -> <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.reference.html">&mut T</a></h4></section></summary><div class='docblock'>Mutably borrows from an owned value. <a href="https://doc.rust-lang.org/1.84.0/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut">Read more</a></div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Downcast%3CT%3E-for-T" class="impl"><a class="src rightside" href="../../src/khronos_egl/lib.rs.html#148">Source</a><a href="#impl-Downcast%3CT%3E-for-T" class="anchor">§</a><h3 class="code-header">impl<T> <a class="trait" href="../../khronos_egl/trait.Downcast.html" title="trait khronos_egl::Downcast">Downcast</a><T> for T</h3></section></summary><div class="impl-items"><section id="method.downcast" class="method trait-impl"><a class="src rightside" href="../../src/khronos_egl/lib.rs.html#149">Source</a><a href="#method.downcast" class="anchor">§</a><h4 class="code-header">fn <a href="../../khronos_egl/trait.Downcast.html#tymethod.downcast" class="fn">downcast</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.reference.html">&T</a></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-DynAdapter-for-A" class="impl"><a class="src rightside" href="../../src/wgpu_hal/dynamic/adapter.rs.html#39-67">Source</a><a href="#impl-DynAdapter-for-A" class="anchor">§</a><h3 class="code-header">impl<A> <a class="trait" href="../trait.DynAdapter.html" title="trait wgpu_hal::DynAdapter">DynAdapter</a> for A<div class="where">where
|
||
A: <a class="trait" href="../trait.Adapter.html" title="trait wgpu_hal::Adapter">Adapter</a> + <a class="trait" href="../trait.DynResource.html" title="trait wgpu_hal::DynResource">DynResource</a>,</div></h3></section></summary><div class="impl-items"><section id="method.open-1" class="method trait-impl"><a class="src rightside" href="../../src/wgpu_hal/dynamic/adapter.rs.html#40-50">Source</a><a href="#method.open-1" class="anchor">§</a><h4 class="code-header">unsafe fn <a href="../trait.DynAdapter.html#tymethod.open" class="fn">open</a>(
|
||
&self,
|
||
features: <a class="struct" href="../../wgpu_types/struct.Features.html" title="struct wgpu_types::Features">Features</a>,
|
||
limits: &<a class="struct" href="../../wgpu_types/struct.Limits.html" title="struct wgpu_types::Limits">Limits</a>,
|
||
memory_hints: &<a class="enum" href="../../wgpu_types/enum.MemoryHints.html" title="enum wgpu_types::MemoryHints">MemoryHints</a>,
|
||
) -> <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="struct" href="../struct.DynOpenDevice.html" title="struct wgpu_hal::DynOpenDevice">DynOpenDevice</a>, <a class="enum" href="../enum.DeviceError.html" title="enum wgpu_hal::DeviceError">DeviceError</a>></h4></section><section id="method.texture_format_capabilities-1" class="method trait-impl"><a class="src rightside" href="../../src/wgpu_hal/dynamic/adapter.rs.html#52-57">Source</a><a href="#method.texture_format_capabilities-1" class="anchor">§</a><h4 class="code-header">unsafe fn <a href="../trait.DynAdapter.html#tymethod.texture_format_capabilities" class="fn">texture_format_capabilities</a>(
|
||
&self,
|
||
format: <a class="enum" href="../../wgpu_types/enum.TextureFormat.html" title="enum wgpu_types::TextureFormat">TextureFormat</a>,
|
||
) -> <a class="struct" href="../struct.TextureFormatCapabilities.html" title="struct wgpu_hal::TextureFormatCapabilities">TextureFormatCapabilities</a></h4></section><section id="method.surface_capabilities-1" class="method trait-impl"><a class="src rightside" href="../../src/wgpu_hal/dynamic/adapter.rs.html#59-62">Source</a><a href="#method.surface_capabilities-1" class="anchor">§</a><h4 class="code-header">unsafe fn <a href="../trait.DynAdapter.html#tymethod.surface_capabilities" class="fn">surface_capabilities</a>(
|
||
&self,
|
||
surface: &(dyn <a class="trait" href="../trait.DynSurface.html" title="trait wgpu_hal::DynSurface">DynSurface</a> + 'static),
|
||
) -> <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="../struct.SurfaceCapabilities.html" title="struct wgpu_hal::SurfaceCapabilities">SurfaceCapabilities</a>></h4></section><section id="method.get_presentation_timestamp-1" class="method trait-impl"><a class="src rightside" href="../../src/wgpu_hal/dynamic/adapter.rs.html#64-66">Source</a><a href="#method.get_presentation_timestamp-1" class="anchor">§</a><h4 class="code-header">unsafe fn <a href="../trait.DynAdapter.html#tymethod.get_presentation_timestamp" class="fn">get_presentation_timestamp</a>(&self) -> <a class="struct" href="../../wgpu_types/struct.PresentationTimestamp.html" title="struct wgpu_types::PresentationTimestamp">PresentationTimestamp</a></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-From%3CT%3E-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/1.84.0/src/core/convert/mod.rs.html#765">Source</a><a href="#impl-From%3CT%3E-for-T" class="anchor">§</a><h3 class="code-header">impl<T> <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/convert/trait.From.html" title="trait core::convert::From">From</a><T> for T</h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.from" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.84.0/src/core/convert/mod.rs.html#768">Source</a><a href="#method.from" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.84.0/core/convert/trait.From.html#tymethod.from" class="fn">from</a>(t: T) -> T</h4></section></summary><div class="docblock"><p>Returns the argument unchanged.</p>
|
||
</div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Into%3CU%3E-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/1.84.0/src/core/convert/mod.rs.html#748-750">Source</a><a href="#impl-Into%3CU%3E-for-T" class="anchor">§</a><h3 class="code-header">impl<T, U> <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><U> for T<div class="where">where
|
||
U: <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/convert/trait.From.html" title="trait core::convert::From">From</a><T>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.into" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.84.0/src/core/convert/mod.rs.html#758">Source</a><a href="#method.into" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.84.0/core/convert/trait.Into.html#tymethod.into" class="fn">into</a>(self) -> U</h4></section></summary><div class="docblock"><p>Calls <code>U::from(self)</code>.</p>
|
||
<p>That is, this conversion is whatever the implementation of
|
||
<code><a href="https://doc.rust-lang.org/1.84.0/core/convert/trait.From.html" title="trait core::convert::From">From</a><T> for U</code> chooses to do.</p>
|
||
</div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-TryFrom%3CU%3E-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/1.84.0/src/core/convert/mod.rs.html#805-807">Source</a><a href="#impl-TryFrom%3CU%3E-for-T" class="anchor">§</a><h3 class="code-header">impl<T, U> <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><U> for T<div class="where">where
|
||
U: <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><T>,</div></h3></section></summary><div class="impl-items"><details class="toggle" open><summary><section id="associatedtype.Error-1" class="associatedtype trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.84.0/src/core/convert/mod.rs.html#809">Source</a><a href="#associatedtype.Error-1" class="anchor">§</a><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.84.0/core/convert/trait.TryFrom.html#associatedtype.Error" class="associatedtype">Error</a> = <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/convert/enum.Infallible.html" title="enum core::convert::Infallible">Infallible</a></h4></section></summary><div class='docblock'>The type returned in the event of a conversion error.</div></details><details class="toggle method-toggle" open><summary><section id="method.try_from" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.84.0/src/core/convert/mod.rs.html#812">Source</a><a href="#method.try_from" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.84.0/core/convert/trait.TryFrom.html#tymethod.try_from" class="fn">try_from</a>(value: U) -> <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><T, <T as <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><U>>::<a class="associatedtype" href="https://doc.rust-lang.org/1.84.0/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a>></h4></section></summary><div class='docblock'>Performs the conversion.</div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-TryInto%3CU%3E-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/1.84.0/src/core/convert/mod.rs.html#790-792">Source</a><a href="#impl-TryInto%3CU%3E-for-T" class="anchor">§</a><h3 class="code-header">impl<T, U> <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/convert/trait.TryInto.html" title="trait core::convert::TryInto">TryInto</a><U> for T<div class="where">where
|
||
U: <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><T>,</div></h3></section></summary><div class="impl-items"><details class="toggle" open><summary><section id="associatedtype.Error" class="associatedtype trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.84.0/src/core/convert/mod.rs.html#794">Source</a><a href="#associatedtype.Error" class="anchor">§</a><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.84.0/core/convert/trait.TryInto.html#associatedtype.Error" class="associatedtype">Error</a> = <U as <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><T>>::<a class="associatedtype" href="https://doc.rust-lang.org/1.84.0/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a></h4></section></summary><div class='docblock'>The type returned in the event of a conversion error.</div></details><details class="toggle method-toggle" open><summary><section id="method.try_into" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.84.0/src/core/convert/mod.rs.html#797">Source</a><a href="#method.try_into" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.84.0/core/convert/trait.TryInto.html#tymethod.try_into" class="fn">try_into</a>(self) -> <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><U, <U as <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><T>>::<a class="associatedtype" href="https://doc.rust-lang.org/1.84.0/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a>></h4></section></summary><div class='docblock'>Performs the conversion.</div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Upcast%3CT%3E-for-T" class="impl"><a class="src rightside" href="../../src/khronos_egl/lib.rs.html#158">Source</a><a href="#impl-Upcast%3CT%3E-for-T" class="anchor">§</a><h3 class="code-header">impl<T> <a class="trait" href="../../khronos_egl/trait.Upcast.html" title="trait khronos_egl::Upcast">Upcast</a><T> for T</h3></section></summary><div class="impl-items"><section id="method.upcast" class="method trait-impl"><a class="src rightside" href="../../src/khronos_egl/lib.rs.html#159">Source</a><a href="#method.upcast" class="anchor">§</a><h4 class="code-header">fn <a href="../../khronos_egl/trait.Upcast.html#tymethod.upcast" class="fn">upcast</a>(&self) -> <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.reference.html">&T</a>></h4></section></div></details><section id="impl-WasmNotSend-for-T" class="impl"><a class="src rightside" href="../../src/wgpu_types/lib.rs.html#7477">Source</a><a href="#impl-WasmNotSend-for-T" class="anchor">§</a><h3 class="code-header">impl<T> <a class="trait" href="../../wgpu_types/send_sync/trait.WasmNotSend.html" title="trait wgpu_types::send_sync::WasmNotSend">WasmNotSend</a> for T<div class="where">where
|
||
T: <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a>,</div></h3></section><section id="impl-WasmNotSendSync-for-T" class="impl"><a class="src rightside" href="../../src/wgpu_types/lib.rs.html#7461">Source</a><a href="#impl-WasmNotSendSync-for-T" class="anchor">§</a><h3 class="code-header">impl<T> <a class="trait" href="../../wgpu_types/send_sync/trait.WasmNotSendSync.html" title="trait wgpu_types::send_sync::WasmNotSendSync">WasmNotSendSync</a> for T<div class="where">where
|
||
T: <a class="trait" href="../../wgpu_types/send_sync/trait.WasmNotSend.html" title="trait wgpu_types::send_sync::WasmNotSend">WasmNotSend</a> + <a class="trait" href="../../wgpu_types/send_sync/trait.WasmNotSync.html" title="trait wgpu_types::send_sync::WasmNotSync">WasmNotSync</a>,</div></h3></section><section id="impl-WasmNotSync-for-T" class="impl"><a class="src rightside" href="../../src/wgpu_types/lib.rs.html#7510">Source</a><a href="#impl-WasmNotSync-for-T" class="anchor">§</a><h3 class="code-header">impl<T> <a class="trait" href="../../wgpu_types/send_sync/trait.WasmNotSync.html" title="trait wgpu_types::send_sync::WasmNotSync">WasmNotSync</a> for T<div class="where">where
|
||
T: <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a>,</div></h3></section></div></section></div></main></body></html> |