wgpu::custom

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);
}
Available on custom only.

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.