wgpu::dispatch

Trait RenderBundleEncoderInterface

source
pub trait RenderBundleEncoderInterface: CommonTraits {
    // Required methods
    fn set_pipeline(&mut self, pipeline: &DispatchRenderPipeline);
    fn set_bind_group(
        &mut self,
        index: u32,
        bind_group: Option<&DispatchBindGroup>,
        offsets: &[DynamicOffset],
    );
    fn set_index_buffer(
        &mut self,
        buffer: &DispatchBuffer,
        index_format: IndexFormat,
        offset: BufferAddress,
        size: Option<BufferSize>,
    );
    fn set_vertex_buffer(
        &mut self,
        slot: u32,
        buffer: &DispatchBuffer,
        offset: BufferAddress,
        size: Option<BufferSize>,
    );
    fn set_push_constants(
        &mut self,
        stages: ShaderStages,
        offset: u32,
        data: &[u8],
    );
    fn draw(&mut self, vertices: Range<u32>, instances: Range<u32>);
    fn draw_indexed(
        &mut self,
        indices: Range<u32>,
        base_vertex: i32,
        instances: Range<u32>,
    );
    fn draw_indirect(
        &mut self,
        indirect_buffer: &DispatchBuffer,
        indirect_offset: BufferAddress,
    );
    fn draw_indexed_indirect(
        &mut self,
        indirect_buffer: &DispatchBuffer,
        indirect_offset: BufferAddress,
    );
    fn finish(self, desc: &RenderBundleDescriptor<'_>) -> DispatchRenderBundle
       where Self: Sized;
}

Required Methods§

source

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

source

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

source

fn set_index_buffer( &mut self, buffer: &DispatchBuffer, index_format: IndexFormat, offset: BufferAddress, size: Option<BufferSize>, )

source

fn set_vertex_buffer( &mut self, slot: u32, buffer: &DispatchBuffer, offset: BufferAddress, size: Option<BufferSize>, )

source

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

source

fn draw(&mut self, vertices: Range<u32>, instances: Range<u32>)

source

fn draw_indexed( &mut self, indices: Range<u32>, base_vertex: i32, instances: Range<u32>, )

source

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

source

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

source

fn finish(self, desc: &RenderBundleDescriptor<'_>) -> DispatchRenderBundle
where Self: Sized,

Implementors§