[][src]Struct web_sys::WebGpuCommandEncoder

#[repr(transparent)]
pub struct WebGpuCommandEncoder { /* fields omitted */ }

The WebGPUCommandEncoder object

MDN Documentation

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

MDN Documentation

This API requires the following crate features to be activated: WebGpuCommandEncoder

impl WebGpuCommandEncoder[src]

pub fn begin_render_pass(&self)[src]

The beginRenderPass() method

MDN Documentation

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]

The beginRenderPass() method

MDN Documentation

This API requires the following crate features to be activated: WebGpuCommandEncoder, WebGpuRenderPassDescriptor

impl WebGpuCommandEncoder[src]

pub fn blit(&self)[src]

The blit() method

MDN Documentation

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]

The copyBufferToBuffer() method

MDN Documentation

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

MDN Documentation

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

MDN Documentation

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

MDN Documentation

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

MDN Documentation

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]

The draw() method

MDN Documentation

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]

The drawIndexed() method

MDN Documentation

This API requires the following crate features to be activated: WebGpuCommandEncoder

impl WebGpuCommandEncoder[src]

pub fn end_compute_pass(&self)[src]

The endComputePass() method

MDN Documentation

This API requires the following crate features to be activated: WebGpuCommandEncoder

impl WebGpuCommandEncoder[src]

pub fn end_render_pass(&self)[src]

The endRenderPass() method

MDN Documentation

This API requires the following crate features to be activated: WebGpuCommandEncoder

impl WebGpuCommandEncoder[src]

pub fn finish_encoding(&self) -> WebGpuCommandBuffer[src]

The finishEncoding() method

MDN Documentation

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

MDN Documentation

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

MDN Documentation

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

MDN Documentation

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]

The setPipeline() method

MDN Documentation

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]

The setPipeline() method

MDN Documentation

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]

The setPushConstants() method

MDN Documentation

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]

The setVertexBuffers() method

MDN Documentation

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

MDN Documentation

This API requires the following crate features to be activated: WebGpuBuffer, WebGpuCommandEncoder

Trait Implementations

impl AsRef<JsValue> for WebGpuCommandEncoder[src]

impl AsRef<WebGpuCommandEncoder> for WebGpuCommandEncoder[src]

impl AsRef<Object> for WebGpuCommandEncoder[src]

impl From<JsValue> for WebGpuCommandEncoder[src]

impl From<WebGpuCommandEncoder> for JsValue[src]

impl From<WebGpuCommandEncoder> for Object[src]

impl Clone for WebGpuCommandEncoder[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Deref for WebGpuCommandEncoder[src]

type Target = Object

The resulting type after dereferencing.

impl Debug for WebGpuCommandEncoder[src]

impl JsCast for WebGpuCommandEncoder[src]

fn has_type<T>(&self) -> bool where
    T: JsCast
[src]

Test whether this JS value has a type T. Read more

fn dyn_into<T>(self) -> Result<T, Self> where
    T: JsCast
[src]

Performs a dynamic cast (checked at runtime) of this value into the target type T. Read more

fn dyn_ref<T>(&self) -> Option<&T> where
    T: JsCast
[src]

Performs a dynamic cast (checked at runtime) of this value into the target type T. Read more

fn unchecked_into<T>(self) -> T where
    T: JsCast
[src]

Performs a zero-cost unchecked cast into the specified type. Read more

fn unchecked_ref<T>(&self) -> &T where
    T: JsCast
[src]

Performs a zero-cost unchecked cast into a reference to the specified type. Read more

fn is_instance_of<T>(&self) -> bool where
    T: JsCast
[src]

Test whether this JS value is an instance of the type T. Read more

fn is_type_of(val: &JsValue) -> bool[src]

Performs a dynamic check to see whether the JsValue provided is a value of this 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

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

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

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

impl OptionIntoWasmAbi for WebGpuCommandEncoder[src]

impl<'a> OptionIntoWasmAbi for &'a WebGpuCommandEncoder[src]

impl OptionFromWasmAbi for WebGpuCommandEncoder[src]

Auto Trait Implementations

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> ReturnWasmAbi for T where
    T: IntoWasmAbi
[src]

type Abi = <T as IntoWasmAbi>::Abi

Same as IntoWasmAbi::Abi