wgpu::dispatch

Trait ComputePassInterface

source
pub trait ComputePassInterface: CommonTraits {
    // Required methods
    fn set_pipeline(&mut self, pipeline: &DispatchComputePipeline);
    fn set_bind_group(
        &mut self,
        index: u32,
        bind_group: Option<&DispatchBindGroup>,
        offsets: &[DynamicOffset],
    );
    fn set_push_constants(&mut self, offset: u32, data: &[u8]);
    fn insert_debug_marker(&mut self, label: &str);
    fn push_debug_group(&mut self, group_label: &str);
    fn pop_debug_group(&mut self);
    fn write_timestamp(
        &mut self,
        query_set: &DispatchQuerySet,
        query_index: u32,
    );
    fn begin_pipeline_statistics_query(
        &mut self,
        query_set: &DispatchQuerySet,
        query_index: u32,
    );
    fn end_pipeline_statistics_query(&mut self);
    fn dispatch_workgroups(&mut self, x: u32, y: u32, z: u32);
    fn dispatch_workgroups_indirect(
        &mut self,
        indirect_buffer: &DispatchBuffer,
        indirect_offset: BufferAddress,
    );
    fn end(&mut self);
}

Required Methods§

source

fn set_pipeline(&mut self, pipeline: &DispatchComputePipeline)

source

fn set_bind_group( &mut self, index: u32, bind_group: Option<&DispatchBindGroup>, offsets: &[DynamicOffset], )

source

fn set_push_constants(&mut self, offset: u32, data: &[u8])

source

fn insert_debug_marker(&mut self, label: &str)

source

fn push_debug_group(&mut self, group_label: &str)

source

fn pop_debug_group(&mut self)

source

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

source

fn begin_pipeline_statistics_query( &mut self, query_set: &DispatchQuerySet, query_index: u32, )

source

fn end_pipeline_statistics_query(&mut self)

source

fn dispatch_workgroups(&mut self, x: u32, y: u32, z: u32)

source

fn dispatch_workgroups_indirect( &mut self, indirect_buffer: &DispatchBuffer, indirect_offset: BufferAddress, )

source

fn end(&mut self)

Implementors§

source§

impl ComputePassInterface for CoreComputePass

Available on wgpu_core only.