#[repr(C)]pub struct DrawIndexedIndirectCommand {
pub index_count: u32,
pub instance_count: u32,
pub first_index: u32,
pub vertex_offset: u32,
pub first_instance: u32,
}
Expand description
Used as buffer contents to provide input for the
AutoCommandBufferBuilder::draw_indexed_indirect
command.
§Safety
- Every index within the specified range must fall within the range of the bound index buffer.
- Every vertex number that is retrieved from the index buffer must fall within the range of the bound vertex-rate vertex buffers.
- Every vertex number that is retrieved from the index buffer, if it is not the special
primitive restart value, must be no greater than the
max_draw_indexed_index_value
device limit. - Every instance number within the specified range must fall within the range of the bound instance-rate vertex buffers.
- If the
draw_indirect_first_instance
feature is not enabled, thenfirst_instance
must be0
. - If an instance divisor other than 1 is used, and the
supports_non_zero_first_instance
device property isfalse
, thenfirst_instance
must be0
.
Fields§
§index_count: u32
§instance_count: u32
§first_index: u32
§vertex_offset: u32
§first_instance: u32
Trait Implementations§
Source§impl Clone for DrawIndexedIndirectCommand
impl Clone for DrawIndexedIndirectCommand
Source§fn clone(&self) -> DrawIndexedIndirectCommand
fn clone(&self) -> DrawIndexedIndirectCommand
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for DrawIndexedIndirectCommand
impl Debug for DrawIndexedIndirectCommand
Source§impl Default for DrawIndexedIndirectCommand
impl Default for DrawIndexedIndirectCommand
Source§fn default() -> DrawIndexedIndirectCommand
fn default() -> DrawIndexedIndirectCommand
Returns the “default value” for a type. Read more
impl Copy for DrawIndexedIndirectCommand
impl Eq for DrawIndexedIndirectCommand
impl Pod for DrawIndexedIndirectCommand
impl StructuralPartialEq for DrawIndexedIndirectCommand
Auto Trait Implementations§
impl Freeze for DrawIndexedIndirectCommand
impl RefUnwindSafe for DrawIndexedIndirectCommand
impl Send for DrawIndexedIndirectCommand
impl Sync for DrawIndexedIndirectCommand
impl Unpin for DrawIndexedIndirectCommand
impl UnwindSafe for DrawIndexedIndirectCommand
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
Source§impl<T> BufferContents for T
impl<T> BufferContents for T
Source§const LAYOUT: BufferContentsLayout = const LAYOUT: BufferContentsLayout =
BufferContentsLayout::from_sized(Layout::new::<T>());
const LAYOUT: BufferContentsLayout = const LAYOUT: BufferContentsLayout = BufferContentsLayout::from_sized(Layout::new::<T>());
The layout of the contents.
unsafe fn ptr_from_slice(slice: NonNull<[u8]>) -> *mut T
Source§impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
Source§type Bits = T
type Bits = T
Self
must have the same layout as the specified Bits
except for
the possible invalid bit patterns being checked during
is_valid_bit_pattern
.Source§fn is_valid_bit_pattern(_bits: &T) -> bool
fn is_valid_bit_pattern(_bits: &T) -> bool
If this function returns true, then it must be valid to reinterpret
bits
as &Self
.