Struct vulkano::command_buffer::DrawIndirectCommand
source · #[repr(C)]pub struct DrawIndirectCommand {
pub vertex_count: u32,
pub instance_count: u32,
pub first_vertex: u32,
pub first_instance: u32,
}
Fields§
§vertex_count: u32
§instance_count: u32
§first_vertex: u32
§first_instance: u32
Trait Implementations§
source§impl Clone for DrawIndirectCommand
impl Clone for DrawIndirectCommand
source§fn clone(&self) -> DrawIndirectCommand
fn clone(&self) -> DrawIndirectCommand
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 DrawIndirectCommand
impl Debug for DrawIndirectCommand
source§impl Default for DrawIndirectCommand
impl Default for DrawIndirectCommand
source§fn default() -> DrawIndirectCommand
fn default() -> DrawIndirectCommand
Returns the “default value” for a type. Read more
source§impl PartialEq for DrawIndirectCommand
impl PartialEq for DrawIndirectCommand
source§fn eq(&self, other: &DrawIndirectCommand) -> bool
fn eq(&self, other: &DrawIndirectCommand) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for DrawIndirectCommand
impl Eq for DrawIndirectCommand
impl Pod for DrawIndirectCommand
impl StructuralEq for DrawIndirectCommand
impl StructuralPartialEq for DrawIndirectCommand
Auto Trait Implementations§
impl RefUnwindSafe for DrawIndirectCommand
impl Send for DrawIndirectCommand
impl Sync for DrawIndirectCommand
impl Unpin for DrawIndirectCommand
impl UnwindSafe for DrawIndirectCommand
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 Twhere
T: AnyBitPattern + Send + Sync,
impl<T> BufferContents for Twhere T: AnyBitPattern + Send + Sync,
source§const LAYOUT: BufferContentsLayout = const LAYOUT: BufferContentsLayout =
if let Some(layout) = BufferContentsLayout::from_sized(Layout::new::<T>())
{
layout
} else {
{
::core::panicking::panic_fmt(<#[lang = "format_arguments"]>::new_const(&["zero-sized types are not valid buffer contents"]));
};
};
const LAYOUT: BufferContentsLayout = const LAYOUT: BufferContentsLayout = if let Some(layout) = BufferContentsLayout::from_sized(Layout::new::<T>()) { layout } else { { ::core::panicking::panic_fmt(<#[lang = "format_arguments"]>::new_const(&["zero-sized types are not valid buffer contents"])); }; };
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,
§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
.