[−][src]Struct web_sys::WebGpuCommandEncoder
The WebGPUCommandEncoder object
This API requires the following crate features to be activated: WebGpuCommandEncoder
Methods
impl WebGpuCommandEncoder[src]
pub fn begin_compute_pass(&self)[src]
The beginComputePass() method
This API requires the following crate features to be activated: WebGpuCommandEncoder
impl WebGpuCommandEncoder[src]
pub fn begin_render_pass(&self)[src]
The beginRenderPass() method
This API requires the following crate features to be activated: WebGpuCommandEncoder
impl WebGpuCommandEncoder[src]
pub fn begin_render_pass_with_descriptor(
&self,
descriptor: &WebGpuRenderPassDescriptor
)[src]
&self,
descriptor: &WebGpuRenderPassDescriptor
)
The beginRenderPass() method
This API requires the following crate features to be activated: WebGpuCommandEncoder, WebGpuRenderPassDescriptor
impl WebGpuCommandEncoder[src]
pub fn blit(&self)[src]
The blit() method
This API requires the following crate features to be activated: WebGpuCommandEncoder
impl WebGpuCommandEncoder[src]
pub fn copy_buffer_to_buffer(
&self,
src: &WebGpuBuffer,
src_offset: u32,
dst: &WebGpuBuffer,
dst_offset: u32,
size: u32
)[src]
&self,
src: &WebGpuBuffer,
src_offset: u32,
dst: &WebGpuBuffer,
dst_offset: u32,
size: u32
)
The copyBufferToBuffer() method
This API requires the following crate features to be activated: WebGpuBuffer, WebGpuCommandEncoder
impl WebGpuCommandEncoder[src]
pub fn copy_buffer_to_texture(&self)[src]
The copyBufferToTexture() method
This API requires the following crate features to be activated: WebGpuCommandEncoder
impl WebGpuCommandEncoder[src]
pub fn copy_texture_to_buffer(&self)[src]
The copyTextureToBuffer() method
This API requires the following crate features to be activated: WebGpuCommandEncoder
impl WebGpuCommandEncoder[src]
pub fn copy_texture_to_texture(&self)[src]
The copyTextureToTexture() method
This API requires the following crate features to be activated: WebGpuCommandEncoder
impl WebGpuCommandEncoder[src]
pub fn dispatch(&self, x: u32, y: u32, z: u32)[src]
The dispatch() method
This API requires the following crate features to be activated: WebGpuCommandEncoder
impl WebGpuCommandEncoder[src]
pub fn draw(
&self,
vertex_count: u32,
instance_count: u32,
first_vertex: u32,
first_instance: u32
)[src]
&self,
vertex_count: u32,
instance_count: u32,
first_vertex: u32,
first_instance: u32
)
The draw() method
This API requires the following crate features to be activated: WebGpuCommandEncoder
impl WebGpuCommandEncoder[src]
pub fn draw_indexed(
&self,
index_count: u32,
instance_count: u32,
first_index: u32,
first_instance: u32,
first_vertex: u32
)[src]
&self,
index_count: u32,
instance_count: u32,
first_index: u32,
first_instance: u32,
first_vertex: u32
)
The drawIndexed() method
This API requires the following crate features to be activated: WebGpuCommandEncoder
impl WebGpuCommandEncoder[src]
pub fn end_compute_pass(&self)[src]
The endComputePass() method
This API requires the following crate features to be activated: WebGpuCommandEncoder
impl WebGpuCommandEncoder[src]
pub fn end_render_pass(&self)[src]
The endRenderPass() method
This API requires the following crate features to be activated: WebGpuCommandEncoder
impl WebGpuCommandEncoder[src]
pub fn finish_encoding(&self) -> WebGpuCommandBuffer[src]
The finishEncoding() method
This API requires the following crate features to be activated: WebGpuCommandBuffer, WebGpuCommandEncoder
impl WebGpuCommandEncoder[src]
pub fn set_bind_group(&self, index: u32, bind_group: &WebGpuBindGroup)[src]
The setBindGroup() method
This API requires the following crate features to be activated: WebGpuBindGroup, WebGpuCommandEncoder
impl WebGpuCommandEncoder[src]
pub fn set_blend_color(&self, r: f32, g: f32, b: f32, a: f32)[src]
The setBlendColor() method
This API requires the following crate features to be activated: WebGpuCommandEncoder
impl WebGpuCommandEncoder[src]
pub fn set_index_buffer(&self, buffer: &WebGpuBuffer, offset: u32)[src]
The setIndexBuffer() method
This API requires the following crate features to be activated: WebGpuBuffer, WebGpuCommandEncoder
impl WebGpuCommandEncoder[src]
pub fn set_pipeline_with_web_gpu_compute_pipeline(
&self,
pipeline: &WebGpuComputePipeline
)[src]
&self,
pipeline: &WebGpuComputePipeline
)
The setPipeline() method
This API requires the following crate features to be activated: WebGpuCommandEncoder, WebGpuComputePipeline
impl WebGpuCommandEncoder[src]
pub fn set_pipeline_with_web_gpu_render_pipeline(
&self,
pipeline: &WebGpuRenderPipeline
)[src]
&self,
pipeline: &WebGpuRenderPipeline
)
The setPipeline() method
This API requires the following crate features to be activated: WebGpuCommandEncoder, WebGpuRenderPipeline
impl WebGpuCommandEncoder[src]
pub fn set_push_constants(
&self,
stage: u32,
offset: u32,
count: u32,
data: &ArrayBuffer
)[src]
&self,
stage: u32,
offset: u32,
count: u32,
data: &ArrayBuffer
)
The setPushConstants() method
This API requires the following crate features to be activated: WebGpuCommandEncoder
impl WebGpuCommandEncoder[src]
pub fn set_vertex_buffers(
&self,
start_slot: u32,
buffers: &JsValue,
offsets: &JsValue
)[src]
&self,
start_slot: u32,
buffers: &JsValue,
offsets: &JsValue
)
The setVertexBuffers() method
This API requires the following crate features to be activated: WebGpuCommandEncoder
impl WebGpuCommandEncoder[src]
pub fn transition_buffer(&self, b: &WebGpuBuffer, f: u32)[src]
The transitionBuffer() method
This API requires the following crate features to be activated: WebGpuBuffer, WebGpuCommandEncoder
Trait Implementations
impl Clone for WebGpuCommandEncoder[src]
fn clone(&self) -> WebGpuCommandEncoder[src]
default fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more
impl AsRef<JsValue> for WebGpuCommandEncoder[src]
impl AsRef<Object> for WebGpuCommandEncoder[src]
impl From<JsValue> for WebGpuCommandEncoder[src]
fn from(obj: JsValue) -> WebGpuCommandEncoder[src]
impl From<WebGpuCommandEncoder> for JsValue[src]
fn from(obj: WebGpuCommandEncoder) -> JsValue[src]
impl From<WebGpuCommandEncoder> for Object[src]
fn from(obj: WebGpuCommandEncoder) -> Object[src]
impl Deref for WebGpuCommandEncoder[src]
impl Debug for WebGpuCommandEncoder[src]
impl JsCast for WebGpuCommandEncoder[src]
fn instanceof(val: &JsValue) -> bool[src]
fn unchecked_from_js(val: JsValue) -> Self[src]
fn unchecked_from_js_ref(val: &JsValue) -> &Self[src]
default fn is_instance_of<T>(&self) -> bool where
T: JsCast, [src]
T: JsCast,
Test whether this JS value is an instance of the type T. Read more
default fn dyn_into<T>(self) -> Result<T, Self> where
T: JsCast, [src]
T: JsCast,
Performs a dynamic cast (checked at runtime) of this value into the target type T. Read more
default fn dyn_ref<T>(&self) -> Option<&T> where
T: JsCast, [src]
T: JsCast,
Performs a dynamic cast (checked at runtime) of this value into the target type T. Read more
default fn unchecked_into<T>(self) -> T where
T: JsCast, [src]
T: JsCast,
Performs a zero-cost unchecked cast into the specified type. Read more
default fn unchecked_ref<T>(&self) -> &T where
T: JsCast, [src]
T: JsCast,
Performs a zero-cost unchecked cast into a reference to the specified type. Read more
impl RefFromWasmAbi for WebGpuCommandEncoder[src]
type Abi = <JsValue as RefFromWasmAbi>::Abi
The wasm ABI type references to Self are recovered from.
type Anchor = ManuallyDrop<WebGpuCommandEncoder>
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
unsafe fn ref_from_abi(js: Self::Abi, extra: &mut dyn Stack) -> Self::Anchor[src]
impl IntoWasmAbi for WebGpuCommandEncoder[src]
type Abi = <JsValue as IntoWasmAbi>::Abi
The wasm ABI type that this converts into when crossing the ABI boundary. Read more
fn into_abi(self, extra: &mut dyn Stack) -> Self::Abi[src]
impl<'a> IntoWasmAbi for &'a WebGpuCommandEncoder[src]
type Abi = <&'a JsValue as IntoWasmAbi>::Abi
The wasm ABI type that this converts into when crossing the ABI boundary. Read more
fn into_abi(self, extra: &mut dyn Stack) -> Self::Abi[src]
impl WasmDescribe for WebGpuCommandEncoder[src]
impl FromWasmAbi for WebGpuCommandEncoder[src]
type Abi = <JsValue as FromWasmAbi>::Abi
The wasm ABI type that this converts from when coming back out from the ABI boundary. Read more
unsafe fn from_abi(js: Self::Abi, extra: &mut dyn Stack) -> Self[src]
impl OptionIntoWasmAbi for WebGpuCommandEncoder[src]
impl<'a> OptionIntoWasmAbi for &'a WebGpuCommandEncoder[src]
impl OptionFromWasmAbi for WebGpuCommandEncoder[src]
Auto Trait Implementations
impl !Send for WebGpuCommandEncoder
impl !Sync for WebGpuCommandEncoder
Blanket Implementations
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
impl<T, U> Into for T where
U: From<T>, [src]
U: From<T>,
impl<T> From for T[src]
impl<T, U> TryFrom for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T> Borrow for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T, U> TryInto for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<T> ReturnWasmAbi for T where
T: IntoWasmAbi, [src]
T: IntoWasmAbi,
type Abi = <T as IntoWasmAbi>::Abi
Same as IntoWasmAbi::Abi