Skip to main content

ComputePassEncoder

Trait ComputePassEncoder 

Source
pub trait ComputePassEncoder<D: Device> {
    // Required methods
    fn set_pipeline(&mut self, pipeline: &D::Pipeline);
    fn set_bind_group(
        &mut self,
        index: u32,
        group: &D::BindGroup,
        dynamic_offsets: &[u32],
    );
    fn dispatch(&mut self, x: u32, y: u32, z: u32);
}
Expand description

Records dispatches inside an open compute pass.

Required Methods§

Source

fn set_pipeline(&mut self, pipeline: &D::Pipeline)

Sets the active pipeline.

Source

fn set_bind_group( &mut self, index: u32, group: &D::BindGroup, dynamic_offsets: &[u32], )

Binds a group at an index.

Source

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

Dispatches workgroups.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§