Struct web_sys::GpuCommandEncoder [−][src]
#[repr(transparent)]pub struct GpuCommandEncoder { /* fields omitted */ }
Expand description
The GpuCommandEncoder
class.
This API requires the following crate features to be activated: GpuCommandEncoder
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 label
field of this object.
This API requires the following crate features to be activated: GpuCommandEncoder
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: GpuCommandEncoder
This API is unstable and requires --cfg=web_sys_unstable_apis
to be activated, as
described in the wasm-bindgen
guide
The beginComputePass()
method.
This API requires the following crate features to be activated: GpuCommandEncoder
, GpuComputePassEncoder
This API is unstable and requires --cfg=web_sys_unstable_apis
to be activated, as
described in the wasm-bindgen
guide
pub fn begin_compute_pass_with_descriptor(
&self,
descriptor: &GpuComputePassDescriptor
) -> GpuComputePassEncoder
pub fn begin_compute_pass_with_descriptor(
&self,
descriptor: &GpuComputePassDescriptor
) -> GpuComputePassEncoder
The beginComputePass()
method.
This API requires the following crate features to be activated: GpuCommandEncoder
, GpuComputePassDescriptor
, GpuComputePassEncoder
This API is unstable and requires --cfg=web_sys_unstable_apis
to be activated, as
described in the wasm-bindgen
guide
The beginRenderPass()
method.
This API requires the following crate features to be activated: GpuCommandEncoder
, GpuRenderPassDescriptor
, GpuRenderPassEncoder
This API is unstable and requires --cfg=web_sys_unstable_apis
to be activated, as
described in the wasm-bindgen
guide
The copyBufferToBuffer()
method.
This API requires the following crate features to be activated: GpuBuffer
, GpuCommandEncoder
This API is unstable and requires --cfg=web_sys_unstable_apis
to be activated, as
described in the wasm-bindgen
guide
The copyBufferToBuffer()
method.
This API requires the following crate features to be activated: GpuBuffer
, GpuCommandEncoder
This API is unstable and requires --cfg=web_sys_unstable_apis
to be activated, as
described in the wasm-bindgen
guide
The copyBufferToBuffer()
method.
This API requires the following crate features to be activated: GpuBuffer
, GpuCommandEncoder
This API is unstable and requires --cfg=web_sys_unstable_apis
to be activated, as
described in the wasm-bindgen
guide
The copyBufferToBuffer()
method.
This API requires the following crate features to be activated: GpuBuffer
, GpuCommandEncoder
This API is unstable and requires --cfg=web_sys_unstable_apis
to be activated, as
described in the wasm-bindgen
guide
The copyBufferToBuffer()
method.
This API requires the following crate features to be activated: GpuBuffer
, GpuCommandEncoder
This API is unstable and requires --cfg=web_sys_unstable_apis
to be activated, as
described in the wasm-bindgen
guide
The copyBufferToBuffer()
method.
This API requires the following crate features to be activated: GpuBuffer
, GpuCommandEncoder
This API is unstable and requires --cfg=web_sys_unstable_apis
to be activated, as
described in the wasm-bindgen
guide
The copyBufferToBuffer()
method.
This API requires the following crate features to be activated: GpuBuffer
, GpuCommandEncoder
This API is unstable and requires --cfg=web_sys_unstable_apis
to be activated, as
described in the wasm-bindgen
guide
The copyBufferToBuffer()
method.
This API requires the following crate features to be activated: GpuBuffer
, GpuCommandEncoder
This API is unstable and requires --cfg=web_sys_unstable_apis
to be activated, as
described in the wasm-bindgen
guide
pub fn copy_buffer_to_texture_with_u32_sequence(
&self,
source: &GpuImageCopyBuffer,
destination: &GpuImageCopyTexture,
copy_size: &JsValue
)
pub fn copy_buffer_to_texture_with_u32_sequence(
&self,
source: &GpuImageCopyBuffer,
destination: &GpuImageCopyTexture,
copy_size: &JsValue
)
The copyBufferToTexture()
method.
This API requires the following crate features to be activated: GpuCommandEncoder
, GpuImageCopyBuffer
, GpuImageCopyTexture
This API is unstable and requires --cfg=web_sys_unstable_apis
to be activated, as
described in the wasm-bindgen
guide
pub fn copy_buffer_to_texture_with_gpu_extent_3d_dict(
&self,
source: &GpuImageCopyBuffer,
destination: &GpuImageCopyTexture,
copy_size: &GpuExtent3dDict
)
pub fn copy_buffer_to_texture_with_gpu_extent_3d_dict(
&self,
source: &GpuImageCopyBuffer,
destination: &GpuImageCopyTexture,
copy_size: &GpuExtent3dDict
)
The copyBufferToTexture()
method.
This API requires the following crate features to be activated: GpuCommandEncoder
, GpuExtent3dDict
, GpuImageCopyBuffer
, GpuImageCopyTexture
This API is unstable and requires --cfg=web_sys_unstable_apis
to be activated, as
described in the wasm-bindgen
guide
pub fn copy_texture_to_buffer_with_u32_sequence(
&self,
source: &GpuImageCopyTexture,
destination: &GpuImageCopyBuffer,
copy_size: &JsValue
)
pub fn copy_texture_to_buffer_with_u32_sequence(
&self,
source: &GpuImageCopyTexture,
destination: &GpuImageCopyBuffer,
copy_size: &JsValue
)
The copyTextureToBuffer()
method.
This API requires the following crate features to be activated: GpuCommandEncoder
, GpuImageCopyBuffer
, GpuImageCopyTexture
This API is unstable and requires --cfg=web_sys_unstable_apis
to be activated, as
described in the wasm-bindgen
guide
pub fn copy_texture_to_buffer_with_gpu_extent_3d_dict(
&self,
source: &GpuImageCopyTexture,
destination: &GpuImageCopyBuffer,
copy_size: &GpuExtent3dDict
)
pub fn copy_texture_to_buffer_with_gpu_extent_3d_dict(
&self,
source: &GpuImageCopyTexture,
destination: &GpuImageCopyBuffer,
copy_size: &GpuExtent3dDict
)
The copyTextureToBuffer()
method.
This API requires the following crate features to be activated: GpuCommandEncoder
, GpuExtent3dDict
, GpuImageCopyBuffer
, GpuImageCopyTexture
This API is unstable and requires --cfg=web_sys_unstable_apis
to be activated, as
described in the wasm-bindgen
guide
pub fn copy_texture_to_texture_with_u32_sequence(
&self,
source: &GpuImageCopyTexture,
destination: &GpuImageCopyTexture,
copy_size: &JsValue
)
pub fn copy_texture_to_texture_with_u32_sequence(
&self,
source: &GpuImageCopyTexture,
destination: &GpuImageCopyTexture,
copy_size: &JsValue
)
The copyTextureToTexture()
method.
This API requires the following crate features to be activated: GpuCommandEncoder
, GpuImageCopyTexture
This API is unstable and requires --cfg=web_sys_unstable_apis
to be activated, as
described in the wasm-bindgen
guide
pub fn copy_texture_to_texture_with_gpu_extent_3d_dict(
&self,
source: &GpuImageCopyTexture,
destination: &GpuImageCopyTexture,
copy_size: &GpuExtent3dDict
)
pub fn copy_texture_to_texture_with_gpu_extent_3d_dict(
&self,
source: &GpuImageCopyTexture,
destination: &GpuImageCopyTexture,
copy_size: &GpuExtent3dDict
)
The copyTextureToTexture()
method.
This API requires the following crate features to be activated: GpuCommandEncoder
, GpuExtent3dDict
, GpuImageCopyTexture
This API is unstable and requires --cfg=web_sys_unstable_apis
to be activated, as
described in the wasm-bindgen
guide
The finish()
method.
This API requires the following crate features to be activated: GpuCommandBuffer
, GpuCommandEncoder
This API is unstable and requires --cfg=web_sys_unstable_apis
to be activated, as
described in the wasm-bindgen
guide
pub fn finish_with_descriptor(
&self,
descriptor: &GpuCommandBufferDescriptor
) -> GpuCommandBuffer
pub fn finish_with_descriptor(
&self,
descriptor: &GpuCommandBufferDescriptor
) -> GpuCommandBuffer
The finish()
method.
This API requires the following crate features to be activated: GpuCommandBuffer
, GpuCommandBufferDescriptor
, GpuCommandEncoder
This API is unstable and requires --cfg=web_sys_unstable_apis
to be activated, as
described in the wasm-bindgen
guide
The insertDebugMarker()
method.
This API requires the following crate features to be activated: GpuCommandEncoder
This API is unstable and requires --cfg=web_sys_unstable_apis
to be activated, as
described in the wasm-bindgen
guide
The popDebugGroup()
method.
This API requires the following crate features to be activated: GpuCommandEncoder
This API is unstable and requires --cfg=web_sys_unstable_apis
to be activated, as
described in the wasm-bindgen
guide
The pushDebugGroup()
method.
This API requires the following crate features to be activated: GpuCommandEncoder
This API is unstable and requires --cfg=web_sys_unstable_apis
to be activated, as
described in the wasm-bindgen
guide
pub fn resolve_query_set_with_u32(
&self,
query_set: &GpuQuerySet,
first_query: u32,
query_count: u32,
destination: &GpuBuffer,
destination_offset: u32
)
pub fn resolve_query_set_with_u32(
&self,
query_set: &GpuQuerySet,
first_query: u32,
query_count: u32,
destination: &GpuBuffer,
destination_offset: u32
)
The resolveQuerySet()
method.
This API requires the following crate features to be activated: GpuBuffer
, GpuCommandEncoder
, GpuQuerySet
This API is unstable and requires --cfg=web_sys_unstable_apis
to be activated, as
described in the wasm-bindgen
guide
pub fn resolve_query_set_with_f64(
&self,
query_set: &GpuQuerySet,
first_query: u32,
query_count: u32,
destination: &GpuBuffer,
destination_offset: f64
)
pub fn resolve_query_set_with_f64(
&self,
query_set: &GpuQuerySet,
first_query: u32,
query_count: u32,
destination: &GpuBuffer,
destination_offset: f64
)
The resolveQuerySet()
method.
This API requires the following crate features to be activated: GpuBuffer
, GpuCommandEncoder
, GpuQuerySet
This API is unstable and requires --cfg=web_sys_unstable_apis
to be activated, as
described in the wasm-bindgen
guide
The writeTimestamp()
method.
This API requires the following crate features to be activated: GpuCommandEncoder
, GpuQuerySet
This API is unstable and requires --cfg=web_sys_unstable_apis
to be activated, as
described in the wasm-bindgen
guide
Trait Implementations
Performs the conversion.
Performs the conversion.
Performs the conversion.
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
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
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<GpuCommandEncoder>
type Anchor = ManuallyDrop<GpuCommandEncoder>
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 GpuCommandEncoder
impl !Send for GpuCommandEncoder
impl !Sync for GpuCommandEncoder
impl Unpin for GpuCommandEncoder
impl UnwindSafe for GpuCommandEncoder
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