Struct web_sys::GpuDevice [−][src]
#[repr(transparent)]pub struct GpuDevice { /* fields omitted */ }
Expand description
The GpuDevice
class.
This API requires the following crate features to be activated: GpuDevice
This API is unstable and requires --cfg=web_sys_unstable_apis
to be activated, as
described in the wasm-bindgen
guide
Implementations
Getter for the features
field of this object.
This API requires the following crate features to be activated: GpuDevice
, GpuSupportedFeatures
This API is unstable and requires --cfg=web_sys_unstable_apis
to be activated, as
described in the wasm-bindgen
guide
Getter for the limits
field of this object.
This API requires the following crate features to be activated: GpuDevice
, GpuSupportedLimits
This API is unstable and requires --cfg=web_sys_unstable_apis
to be activated, as
described in the wasm-bindgen
guide
Getter for the queue
field of this object.
This API requires the following crate features to be activated: GpuDevice
, GpuQueue
This API is unstable and requires --cfg=web_sys_unstable_apis
to be activated, as
described in the wasm-bindgen
guide
Getter for the lost
field of this object.
This API requires the following crate features to be activated: GpuDevice
This API is unstable and requires --cfg=web_sys_unstable_apis
to be activated, as
described in the wasm-bindgen
guide
Getter for the onuncapturederror
field of this object.
This API requires the following crate features to be activated: GpuDevice
This API is unstable and requires --cfg=web_sys_unstable_apis
to be activated, as
described in the wasm-bindgen
guide
Setter for the onuncapturederror
field of this object.
This API requires the following crate features to be activated: GpuDevice
This API is unstable and requires --cfg=web_sys_unstable_apis
to be activated, as
described in the wasm-bindgen
guide
Getter for the label
field of this object.
This API requires the following crate features to be activated: GpuDevice
This API is unstable and requires --cfg=web_sys_unstable_apis
to be activated, as
described in the wasm-bindgen
guide
Setter for the label
field of this object.
This API requires the following crate features to be activated: GpuDevice
This API is unstable and requires --cfg=web_sys_unstable_apis
to be activated, as
described in the wasm-bindgen
guide
The createBindGroup()
method.
This API requires the following crate features to be activated: GpuBindGroup
, GpuBindGroupDescriptor
, GpuDevice
This API is unstable and requires --cfg=web_sys_unstable_apis
to be activated, as
described in the wasm-bindgen
guide
pub fn create_bind_group_layout(
&self,
descriptor: &GpuBindGroupLayoutDescriptor
) -> GpuBindGroupLayout
pub fn create_bind_group_layout(
&self,
descriptor: &GpuBindGroupLayoutDescriptor
) -> GpuBindGroupLayout
The createBindGroupLayout()
method.
This API requires the following crate features to be activated: GpuBindGroupLayout
, GpuBindGroupLayoutDescriptor
, GpuDevice
This API is unstable and requires --cfg=web_sys_unstable_apis
to be activated, as
described in the wasm-bindgen
guide
The createBuffer()
method.
This API requires the following crate features to be activated: GpuBuffer
, GpuBufferDescriptor
, GpuDevice
This API is unstable and requires --cfg=web_sys_unstable_apis
to be activated, as
described in the wasm-bindgen
guide
The createCommandEncoder()
method.
This API requires the following crate features to be activated: GpuCommandEncoder
, GpuDevice
This API is unstable and requires --cfg=web_sys_unstable_apis
to be activated, as
described in the wasm-bindgen
guide
pub fn create_command_encoder_with_descriptor(
&self,
descriptor: &GpuCommandEncoderDescriptor
) -> GpuCommandEncoder
pub fn create_command_encoder_with_descriptor(
&self,
descriptor: &GpuCommandEncoderDescriptor
) -> GpuCommandEncoder
The createCommandEncoder()
method.
This API requires the following crate features to be activated: GpuCommandEncoder
, GpuCommandEncoderDescriptor
, GpuDevice
This API is unstable and requires --cfg=web_sys_unstable_apis
to be activated, as
described in the wasm-bindgen
guide
pub fn create_compute_pipeline(
&self,
descriptor: &GpuComputePipelineDescriptor
) -> GpuComputePipeline
pub fn create_compute_pipeline(
&self,
descriptor: &GpuComputePipelineDescriptor
) -> GpuComputePipeline
The createComputePipeline()
method.
This API requires the following crate features to be activated: GpuComputePipeline
, GpuComputePipelineDescriptor
, GpuDevice
This API is unstable and requires --cfg=web_sys_unstable_apis
to be activated, as
described in the wasm-bindgen
guide
pub fn create_compute_pipeline_async(
&self,
descriptor: &GpuComputePipelineDescriptor
) -> Promise
pub fn create_compute_pipeline_async(
&self,
descriptor: &GpuComputePipelineDescriptor
) -> Promise
The createComputePipelineAsync()
method.
This API requires the following crate features to be activated: GpuComputePipelineDescriptor
, GpuDevice
This API is unstable and requires --cfg=web_sys_unstable_apis
to be activated, as
described in the wasm-bindgen
guide
pub fn create_pipeline_layout(
&self,
descriptor: &GpuPipelineLayoutDescriptor
) -> GpuPipelineLayout
pub fn create_pipeline_layout(
&self,
descriptor: &GpuPipelineLayoutDescriptor
) -> GpuPipelineLayout
The createPipelineLayout()
method.
This API requires the following crate features to be activated: GpuDevice
, GpuPipelineLayout
, GpuPipelineLayoutDescriptor
This API is unstable and requires --cfg=web_sys_unstable_apis
to be activated, as
described in the wasm-bindgen
guide
The createQuerySet()
method.
This API requires the following crate features to be activated: GpuDevice
, GpuQuerySet
, GpuQuerySetDescriptor
This API is unstable and requires --cfg=web_sys_unstable_apis
to be activated, as
described in the wasm-bindgen
guide
pub fn create_render_bundle_encoder(
&self,
descriptor: &GpuRenderBundleEncoderDescriptor
) -> GpuRenderBundleEncoder
pub fn create_render_bundle_encoder(
&self,
descriptor: &GpuRenderBundleEncoderDescriptor
) -> GpuRenderBundleEncoder
The createRenderBundleEncoder()
method.
This API requires the following crate features to be activated: GpuDevice
, GpuRenderBundleEncoder
, GpuRenderBundleEncoderDescriptor
This API is unstable and requires --cfg=web_sys_unstable_apis
to be activated, as
described in the wasm-bindgen
guide
pub fn create_render_pipeline(
&self,
descriptor: &GpuRenderPipelineDescriptor
) -> GpuRenderPipeline
pub fn create_render_pipeline(
&self,
descriptor: &GpuRenderPipelineDescriptor
) -> GpuRenderPipeline
The createRenderPipeline()
method.
This API requires the following crate features to be activated: GpuDevice
, GpuRenderPipeline
, GpuRenderPipelineDescriptor
This API is unstable and requires --cfg=web_sys_unstable_apis
to be activated, as
described in the wasm-bindgen
guide
pub fn create_render_pipeline_async(
&self,
descriptor: &GpuRenderPipelineDescriptor
) -> Promise
pub fn create_render_pipeline_async(
&self,
descriptor: &GpuRenderPipelineDescriptor
) -> Promise
The createRenderPipelineAsync()
method.
This API requires the following crate features to be activated: GpuDevice
, GpuRenderPipelineDescriptor
This API is unstable and requires --cfg=web_sys_unstable_apis
to be activated, as
described in the wasm-bindgen
guide
The createSampler()
method.
This API requires the following crate features to be activated: GpuDevice
, GpuSampler
This API is unstable and requires --cfg=web_sys_unstable_apis
to be activated, as
described in the wasm-bindgen
guide
The createSampler()
method.
This API requires the following crate features to be activated: GpuDevice
, GpuSampler
, GpuSamplerDescriptor
This API is unstable and requires --cfg=web_sys_unstable_apis
to be activated, as
described in the wasm-bindgen
guide
The createShaderModule()
method.
This API requires the following crate features to be activated: GpuDevice
, GpuShaderModule
, GpuShaderModuleDescriptor
This API is unstable and requires --cfg=web_sys_unstable_apis
to be activated, as
described in the wasm-bindgen
guide
The createTexture()
method.
This API requires the following crate features to be activated: GpuDevice
, GpuTexture
, GpuTextureDescriptor
This API is unstable and requires --cfg=web_sys_unstable_apis
to be activated, as
described in the wasm-bindgen
guide
The destroy()
method.
This API requires the following crate features to be activated: GpuDevice
This API is unstable and requires --cfg=web_sys_unstable_apis
to be activated, as
described in the wasm-bindgen
guide
pub fn import_external_texture(
&self,
descriptor: &GpuExternalTextureDescriptor
) -> GpuExternalTexture
pub fn import_external_texture(
&self,
descriptor: &GpuExternalTextureDescriptor
) -> GpuExternalTexture
The importExternalTexture()
method.
This API requires the following crate features to be activated: GpuDevice
, GpuExternalTexture
, GpuExternalTextureDescriptor
This API is unstable and requires --cfg=web_sys_unstable_apis
to be activated, as
described in the wasm-bindgen
guide
The popErrorScope()
method.
This API requires the following crate features to be activated: GpuDevice
This API is unstable and requires --cfg=web_sys_unstable_apis
to be activated, as
described in the wasm-bindgen
guide
The pushErrorScope()
method.
This API requires the following crate features to be activated: GpuDevice
, GpuErrorFilter
This API is unstable and requires --cfg=web_sys_unstable_apis
to be activated, as
described in the wasm-bindgen
guide
Methods from Deref<Target = EventTarget>
The addEventListener()
method.
This API requires the following crate features to be activated: EventTarget
pub fn add_event_listener_with_event_listener(
&self,
type_: &str,
listener: &EventListener
) -> Result<(), JsValue>
pub fn add_event_listener_with_event_listener(
&self,
type_: &str,
listener: &EventListener
) -> Result<(), JsValue>
The addEventListener()
method.
This API requires the following crate features to be activated: EventListener
, EventTarget
pub fn add_event_listener_with_callback_and_add_event_listener_options(
&self,
type_: &str,
listener: &Function,
options: &AddEventListenerOptions
) -> Result<(), JsValue>
pub fn add_event_listener_with_callback_and_add_event_listener_options(
&self,
type_: &str,
listener: &Function,
options: &AddEventListenerOptions
) -> Result<(), JsValue>
The addEventListener()
method.
This API requires the following crate features to be activated: AddEventListenerOptions
, EventTarget
pub fn add_event_listener_with_event_listener_and_add_event_listener_options(
&self,
type_: &str,
listener: &EventListener,
options: &AddEventListenerOptions
) -> Result<(), JsValue>
pub fn add_event_listener_with_event_listener_and_add_event_listener_options(
&self,
type_: &str,
listener: &EventListener,
options: &AddEventListenerOptions
) -> Result<(), JsValue>
The addEventListener()
method.
This API requires the following crate features to be activated: AddEventListenerOptions
, EventListener
, EventTarget
The addEventListener()
method.
This API requires the following crate features to be activated: EventTarget
pub fn add_event_listener_with_event_listener_and_bool(
&self,
type_: &str,
listener: &EventListener,
options: bool
) -> Result<(), JsValue>
pub fn add_event_listener_with_event_listener_and_bool(
&self,
type_: &str,
listener: &EventListener,
options: bool
) -> Result<(), JsValue>
The addEventListener()
method.
This API requires the following crate features to be activated: EventListener
, EventTarget
pub fn add_event_listener_with_callback_and_add_event_listener_options_and_wants_untrusted(
&self,
type_: &str,
listener: &Function,
options: &AddEventListenerOptions,
wants_untrusted: Option<bool>
) -> Result<(), JsValue>
pub fn add_event_listener_with_callback_and_add_event_listener_options_and_wants_untrusted(
&self,
type_: &str,
listener: &Function,
options: &AddEventListenerOptions,
wants_untrusted: Option<bool>
) -> Result<(), JsValue>
The addEventListener()
method.
This API requires the following crate features to be activated: AddEventListenerOptions
, EventTarget
pub fn add_event_listener_with_event_listener_and_add_event_listener_options_and_wants_untrusted(
&self,
type_: &str,
listener: &EventListener,
options: &AddEventListenerOptions,
wants_untrusted: Option<bool>
) -> Result<(), JsValue>
pub fn add_event_listener_with_event_listener_and_add_event_listener_options_and_wants_untrusted(
&self,
type_: &str,
listener: &EventListener,
options: &AddEventListenerOptions,
wants_untrusted: Option<bool>
) -> Result<(), JsValue>
The addEventListener()
method.
This API requires the following crate features to be activated: AddEventListenerOptions
, EventListener
, EventTarget
The addEventListener()
method.
This API requires the following crate features to be activated: EventTarget
pub fn add_event_listener_with_event_listener_and_bool_and_wants_untrusted(
&self,
type_: &str,
listener: &EventListener,
options: bool,
wants_untrusted: Option<bool>
) -> Result<(), JsValue>
pub fn add_event_listener_with_event_listener_and_bool_and_wants_untrusted(
&self,
type_: &str,
listener: &EventListener,
options: bool,
wants_untrusted: Option<bool>
) -> Result<(), JsValue>
The addEventListener()
method.
This API requires the following crate features to be activated: EventListener
, EventTarget
The dispatchEvent()
method.
This API requires the following crate features to be activated: Event
, EventTarget
The removeEventListener()
method.
This API requires the following crate features to be activated: EventTarget
pub fn remove_event_listener_with_event_listener(
&self,
type_: &str,
listener: &EventListener
) -> Result<(), JsValue>
pub fn remove_event_listener_with_event_listener(
&self,
type_: &str,
listener: &EventListener
) -> Result<(), JsValue>
The removeEventListener()
method.
This API requires the following crate features to be activated: EventListener
, EventTarget
pub fn remove_event_listener_with_callback_and_event_listener_options(
&self,
type_: &str,
listener: &Function,
options: &EventListenerOptions
) -> Result<(), JsValue>
pub fn remove_event_listener_with_callback_and_event_listener_options(
&self,
type_: &str,
listener: &Function,
options: &EventListenerOptions
) -> Result<(), JsValue>
The removeEventListener()
method.
This API requires the following crate features to be activated: EventListenerOptions
, EventTarget
pub fn remove_event_listener_with_event_listener_and_event_listener_options(
&self,
type_: &str,
listener: &EventListener,
options: &EventListenerOptions
) -> Result<(), JsValue>
pub fn remove_event_listener_with_event_listener_and_event_listener_options(
&self,
type_: &str,
listener: &EventListener,
options: &EventListenerOptions
) -> Result<(), JsValue>
The removeEventListener()
method.
This API requires the following crate features to be activated: EventListener
, EventListenerOptions
, EventTarget
The removeEventListener()
method.
This API requires the following crate features to be activated: EventTarget
pub fn remove_event_listener_with_event_listener_and_bool(
&self,
type_: &str,
listener: &EventListener,
options: bool
) -> Result<(), JsValue>
pub fn remove_event_listener_with_event_listener_and_bool(
&self,
type_: &str,
listener: &EventListener,
options: bool
) -> Result<(), JsValue>
The removeEventListener()
method.
This API requires the following crate features to be activated: EventListener
, EventTarget
Trait Implementations
Performs the conversion.
type Target = EventTarget
type Target = EventTarget
The resulting type after dereferencing.
Dereferences the value.
Performs the conversion.
Performs a dynamic instanceof
check to see whether the JsValue
provided is an instance of this type. Read more
Performs a zero-cost unchecked conversion from a JsValue
into an
instance of Self
Read more
Performs a zero-cost unchecked conversion from a &JsValue
into an
instance of &Self
. Read more
Test whether this JS value has a type T
. Read more
Performs a dynamic cast (checked at runtime) of this value into the
target type T
. Read more
Performs a dynamic cast (checked at runtime) of this value into the
target type T
. Read more
Performs a zero-cost unchecked cast into the specified type. Read more
Performs a zero-cost unchecked cast into a reference to the specified type. Read more
Test whether this JS value is an instance of the type T
. Read more
Performs a dynamic check to see whether the JsValue
provided
is a value of this type. Read more
type Abi = <JsValue as RefFromWasmAbi>::Abi
type Abi = <JsValue as RefFromWasmAbi>::Abi
The wasm ABI type references to Self
are recovered from.
type Anchor = ManuallyDrop<GpuDevice>
type Anchor = ManuallyDrop<GpuDevice>
The type that holds the reference to Self
for the duration of the
invocation of the function that has an &Self
parameter. This is
required to ensure that the lifetimes don’t persist beyond one function
call, and so that they remain anonymous. Read more
Recover a Self::Anchor
from Self::Abi
. Read more
Auto Trait Implementations
impl RefUnwindSafe for GpuDevice
impl UnwindSafe for GpuDevice
Blanket Implementations
Mutably borrows from an owned value. Read more
type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
Same as IntoWasmAbi::Abi
Same as IntoWasmAbi::into_abi
, except that it may throw and never
return in the case of Err
. Read more