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§
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<'_>) -> DispatchRenderBundlewhere
Self: Sized,
Implementors§
impl RenderBundleEncoderInterface for CoreRenderBundleEncoder
Available on
wgpu_core
only.