wgpu::dispatch

Trait RenderPassInterface

source
pub trait RenderPassInterface: CommonTraits {
Show 27 methods // 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 set_blend_constant(&mut self, color: Color); fn set_scissor_rect(&mut self, x: u32, y: u32, width: u32, height: u32); fn set_viewport( &mut self, x: f32, y: f32, width: f32, height: f32, min_depth: f32, max_depth: f32, ); fn set_stencil_reference(&mut self, reference: u32); 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 multi_draw_indirect( &mut self, indirect_buffer: &DispatchBuffer, indirect_offset: BufferAddress, count: u32, ); fn multi_draw_indexed_indirect( &mut self, indirect_buffer: &DispatchBuffer, indirect_offset: BufferAddress, count: u32, ); fn multi_draw_indirect_count( &mut self, indirect_buffer: &DispatchBuffer, indirect_offset: BufferAddress, count_buffer: &DispatchBuffer, count_buffer_offset: BufferAddress, max_count: u32, ); fn multi_draw_indexed_indirect_count( &mut self, indirect_buffer: &DispatchBuffer, indirect_offset: BufferAddress, count_buffer: &DispatchBuffer, count_buffer_offset: BufferAddress, max_count: u32, ); 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_occlusion_query(&mut self, query_index: u32); fn end_occlusion_query(&mut self); fn begin_pipeline_statistics_query( &mut self, query_set: &DispatchQuerySet, query_index: u32, ); fn end_pipeline_statistics_query(&mut self); fn execute_bundles( &mut self, render_bundles: &mut dyn Iterator<Item = &DispatchRenderBundle>, ); fn end(&mut self);
}

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 set_blend_constant(&mut self, color: Color)

source

fn set_scissor_rect(&mut self, x: u32, y: u32, width: u32, height: u32)

source

fn set_viewport( &mut self, x: f32, y: f32, width: f32, height: f32, min_depth: f32, max_depth: f32, )

source

fn set_stencil_reference(&mut self, reference: u32)

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 multi_draw_indirect( &mut self, indirect_buffer: &DispatchBuffer, indirect_offset: BufferAddress, count: u32, )

source

fn multi_draw_indexed_indirect( &mut self, indirect_buffer: &DispatchBuffer, indirect_offset: BufferAddress, count: u32, )

source

fn multi_draw_indirect_count( &mut self, indirect_buffer: &DispatchBuffer, indirect_offset: BufferAddress, count_buffer: &DispatchBuffer, count_buffer_offset: BufferAddress, max_count: u32, )

source

fn multi_draw_indexed_indirect_count( &mut self, indirect_buffer: &DispatchBuffer, indirect_offset: BufferAddress, count_buffer: &DispatchBuffer, count_buffer_offset: BufferAddress, max_count: u32, )

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_occlusion_query(&mut self, query_index: u32)

source

fn end_occlusion_query(&mut self)

source

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

source

fn end_pipeline_statistics_query(&mut self)

source

fn execute_bundles( &mut self, render_bundles: &mut dyn Iterator<Item = &DispatchRenderBundle>, )

source

fn end(&mut self)

Implementors§

source§

impl RenderPassInterface for CoreRenderPass

Available on wgpu_core only.