Skip to main content

ComputePassInterface

Trait ComputePassInterface 

pub trait ComputePassInterface: CommonTraits + Drop {
    // Required methods
    fn set_pipeline(&mut self, pipeline: &DispatchComputePipeline);
    fn set_bind_group(
        &mut self,
        index: u32,
        bind_group: Option<&DispatchBindGroup>,
        offsets: &[u32],
    );
    fn set_immediates(&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: u64,
    );
}

Required Methods§

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

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

fn set_immediates(&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: u64, )

Implementors§