pub trait RenderPipelineEncoder: PipelineEncoder + RenderEncoder {
type BufferPiece: Send + Sync + Clone + Copy + Debug;
// Required methods
fn bind_vertex(&mut self, index: u32, vertex_buf: Self::BufferPiece);
fn draw(
&mut self,
first_vertex: u32,
vertex_count: u32,
first_instance: u32,
instance_count: u32,
);
fn draw_indexed(
&mut self,
index_buf: Self::BufferPiece,
index_type: IndexType,
index_count: u32,
base_vertex: i32,
start_instance: u32,
instance_count: u32,
);
fn draw_indirect(&mut self, indirect_buf: Self::BufferPiece);
fn draw_indexed_indirect(
&mut self,
index_buf: Self::BufferPiece,
index_type: IndexType,
indirect_buf: Self::BufferPiece,
);
}Required Associated Types§
Required Methods§
fn bind_vertex(&mut self, index: u32, vertex_buf: Self::BufferPiece)
fn draw( &mut self, first_vertex: u32, vertex_count: u32, first_instance: u32, instance_count: u32, )
fn draw_indexed( &mut self, index_buf: Self::BufferPiece, index_type: IndexType, index_count: u32, base_vertex: i32, start_instance: u32, instance_count: u32, )
fn draw_indirect(&mut self, indirect_buf: Self::BufferPiece)
fn draw_indexed_indirect( &mut self, index_buf: Self::BufferPiece, index_type: IndexType, indirect_buf: Self::BufferPiece, )
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.