pub enum DrawCommand<'a> {
Array {
vertex_count: u32,
instance_count: u32,
first_vertex: u32,
first_instance: u32,
},
Indexed {
index_buffer: &'a VulkanBuffer,
index_count: u32,
instance_count: u32,
first_index: u32,
vertex_offset: i32,
first_instance: u32,
index_type: IndexType,
},
Indirect {
indirect_buffer: &'a VulkanBuffer,
offset: u64,
draw_count: u32,
stride: u32,
},
IndexedIndirect {
index_buffer: &'a VulkanBuffer,
indirect_buffer: &'a VulkanBuffer,
offset: u64,
draw_count: u32,
stride: u32,
index_type: IndexType,
},
}Variants§
Trait Implementations§
Source§impl<'a> Clone for DrawCommand<'a>
impl<'a> Clone for DrawCommand<'a>
impl<'a> Copy for DrawCommand<'a>
Auto Trait Implementations§
impl<'a> Freeze for DrawCommand<'a>
impl<'a> RefUnwindSafe for DrawCommand<'a>
impl<'a> Send for DrawCommand<'a>
impl<'a> Sync for DrawCommand<'a>
impl<'a> Unpin for DrawCommand<'a>
impl<'a> UnsafeUnpin for DrawCommand<'a>
impl<'a> UnwindSafe for DrawCommand<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more