[−][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 AsRef<JsValue> for WebGpuCommandEncoder
[src]
impl AsRef<Object> for WebGpuCommandEncoder
[src]
impl AsRef<WebGpuCommandEncoder> for WebGpuCommandEncoder
[src]
fn as_ref(&self) -> &WebGpuCommandEncoder
[src]
impl Clone for WebGpuCommandEncoder
[src]
fn clone(&self) -> WebGpuCommandEncoder
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for WebGpuCommandEncoder
[src]
impl Deref for WebGpuCommandEncoder
[src]
impl Eq 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 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) -> Self
[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) -> 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) -> Self::Abi
[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]
fn has_type<T>(&self) -> bool where
T: JsCast,
[src]
T: JsCast,
fn dyn_into<T>(self) -> Result<T, Self> where
T: JsCast,
[src]
T: JsCast,
fn dyn_ref<T>(&self) -> Option<&T> where
T: JsCast,
[src]
T: JsCast,
fn unchecked_into<T>(self) -> T where
T: JsCast,
[src]
T: JsCast,
fn unchecked_ref<T>(&self) -> &T where
T: JsCast,
[src]
T: JsCast,
fn is_instance_of<T>(&self) -> bool where
T: JsCast,
[src]
T: JsCast,
fn is_type_of(val: &JsValue) -> bool
[src]
impl OptionFromWasmAbi for WebGpuCommandEncoder
[src]
impl OptionIntoWasmAbi for WebGpuCommandEncoder
[src]
impl<'a> OptionIntoWasmAbi for &'a WebGpuCommandEncoder
[src]
impl PartialEq<WebGpuCommandEncoder> for WebGpuCommandEncoder
[src]
fn eq(&self, other: &WebGpuCommandEncoder) -> bool
[src]
fn ne(&self, other: &WebGpuCommandEncoder) -> bool
[src]
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) -> Self::Anchor
[src]
impl StructuralEq for WebGpuCommandEncoder
[src]
impl StructuralPartialEq for WebGpuCommandEncoder
[src]
impl WasmDescribe for WebGpuCommandEncoder
[src]
Auto Trait Implementations
impl RefUnwindSafe for WebGpuCommandEncoder
impl !Send for WebGpuCommandEncoder
impl !Sync for WebGpuCommandEncoder
impl Unpin for WebGpuCommandEncoder
impl UnwindSafe for WebGpuCommandEncoder
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ReturnWasmAbi for T where
T: IntoWasmAbi,
[src]
T: IntoWasmAbi,
type Abi = <T as IntoWasmAbi>::Abi
Same as IntoWasmAbi::Abi
fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> 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, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,