Trait RenderPassMultiDrawIndirectExt
Source pub trait RenderPassMultiDrawIndirectExt<'a> {
// Required methods
fn multi_draw_indirect(
&mut self,
indirect_buffer: &'a IndirectBuffer<DrawIndirect>,
start_index: usize,
count: u32,
);
fn multi_draw_indexed_indirect(
&mut self,
indirect_buffer: &'a IndirectBuffer<DrawIndexedIndirect>,
start_index: usize,
count: u32,
);
}
Expand description
Extension trait for multi-draw indirect operations.
Requires the MULTI_DRAW_INDIRECT feature.
Draw non-indexed geometry multiple times using an indirect buffer.
§Arguments
indirect_buffer - Buffer containing draw commands
start_index - Index of the first command to execute
count - Number of commands to execute
§Panics
Panics if MULTI_DRAW_INDIRECT feature is not enabled.
Draw indexed geometry multiple times using an indirect buffer.
§Arguments
indirect_buffer - Buffer containing draw commands
start_index - Index of the first command to execute
count - Number of commands to execute
§Panics
Panics if MULTI_DRAW_INDIRECT feature is not enabled.