wgpu::dispatch

Trait CommandEncoderInterface

source
pub trait CommandEncoderInterface: CommonTraits {
Show 16 methods // Required methods fn copy_buffer_to_buffer( &self, source: &DispatchBuffer, source_offset: BufferAddress, destination: &DispatchBuffer, destination_offset: BufferAddress, copy_size: BufferAddress, ); fn copy_buffer_to_texture( &self, source: TexelCopyBufferInfo<'_>, destination: TexelCopyTextureInfo<'_>, copy_size: Extent3d, ); fn copy_texture_to_buffer( &self, source: TexelCopyTextureInfo<'_>, destination: TexelCopyBufferInfo<'_>, copy_size: Extent3d, ); fn copy_texture_to_texture( &self, source: TexelCopyTextureInfo<'_>, destination: TexelCopyTextureInfo<'_>, copy_size: Extent3d, ); fn begin_compute_pass( &self, desc: &ComputePassDescriptor<'_>, ) -> DispatchComputePass; fn begin_render_pass( &self, desc: &RenderPassDescriptor<'_>, ) -> DispatchRenderPass; fn finish(&mut self) -> DispatchCommandBuffer; fn clear_texture( &self, texture: &DispatchTexture, subresource_range: &ImageSubresourceRange, ); fn clear_buffer( &self, buffer: &DispatchBuffer, offset: BufferAddress, size: Option<BufferAddress>, ); fn insert_debug_marker(&self, label: &str); fn push_debug_group(&self, label: &str); fn pop_debug_group(&self); fn write_timestamp(&self, query_set: &DispatchQuerySet, query_index: u32); fn resolve_query_set( &self, query_set: &DispatchQuerySet, first_query: u32, query_count: u32, destination: &DispatchBuffer, destination_offset: BufferAddress, ); fn build_acceleration_structures_unsafe_tlas<'a>( &self, blas: &mut dyn Iterator<Item = &'a BlasBuildEntry<'a>>, tlas: &mut dyn Iterator<Item = &'a TlasBuildEntry<'a>>, ); fn build_acceleration_structures<'a>( &self, blas: &mut dyn Iterator<Item = &'a BlasBuildEntry<'a>>, tlas: &mut dyn Iterator<Item = &'a TlasPackage>, );
}

Required Methods§

source

fn copy_buffer_to_buffer( &self, source: &DispatchBuffer, source_offset: BufferAddress, destination: &DispatchBuffer, destination_offset: BufferAddress, copy_size: BufferAddress, )

source

fn copy_buffer_to_texture( &self, source: TexelCopyBufferInfo<'_>, destination: TexelCopyTextureInfo<'_>, copy_size: Extent3d, )

source

fn copy_texture_to_buffer( &self, source: TexelCopyTextureInfo<'_>, destination: TexelCopyBufferInfo<'_>, copy_size: Extent3d, )

source

fn copy_texture_to_texture( &self, source: TexelCopyTextureInfo<'_>, destination: TexelCopyTextureInfo<'_>, copy_size: Extent3d, )

source

fn begin_compute_pass( &self, desc: &ComputePassDescriptor<'_>, ) -> DispatchComputePass

source

fn begin_render_pass( &self, desc: &RenderPassDescriptor<'_>, ) -> DispatchRenderPass

source

fn finish(&mut self) -> DispatchCommandBuffer

source

fn clear_texture( &self, texture: &DispatchTexture, subresource_range: &ImageSubresourceRange, )

source

fn clear_buffer( &self, buffer: &DispatchBuffer, offset: BufferAddress, size: Option<BufferAddress>, )

source

fn insert_debug_marker(&self, label: &str)

source

fn push_debug_group(&self, label: &str)

source

fn pop_debug_group(&self)

source

fn write_timestamp(&self, query_set: &DispatchQuerySet, query_index: u32)

source

fn resolve_query_set( &self, query_set: &DispatchQuerySet, first_query: u32, query_count: u32, destination: &DispatchBuffer, destination_offset: BufferAddress, )

source

fn build_acceleration_structures_unsafe_tlas<'a>( &self, blas: &mut dyn Iterator<Item = &'a BlasBuildEntry<'a>>, tlas: &mut dyn Iterator<Item = &'a TlasBuildEntry<'a>>, )

source

fn build_acceleration_structures<'a>( &self, blas: &mut dyn Iterator<Item = &'a BlasBuildEntry<'a>>, tlas: &mut dyn Iterator<Item = &'a TlasPackage>, )

Implementors§

source§

impl CommandEncoderInterface for CoreCommandEncoder

Available on wgpu_core only.