#[repr(C)]pub struct SDL_GPUIndexedIndirectDrawCommand {
pub num_indices: Uint32,
pub num_instances: Uint32,
pub first_index: Uint32,
pub vertex_offset: Sint32,
pub first_instance: Uint32,
}Expand description
A structure specifying the parameters of an indexed indirect draw command.
Note that the first_vertex and first_instance parameters are NOT
compatible with built-in vertex/instance ID variables in shaders (for
example, SV_VertexID); GPU APIs and shader languages do not define these
built-in variables consistently, so if your shader depends on them, the
only way to keep behavior consistent and portable is to always pass 0 for
the correlating parameter in the draw calls.
§Availability
This struct is available since SDL 3.2.0.
§See also
Fields§
§num_indices: Uint32The number of indices to draw per instance.
num_instances: Uint32The number of instances to draw.
first_index: Uint32The base index within the index buffer.
vertex_offset: Sint32The value added to the vertex index before indexing into the vertex buffer.
first_instance: Uint32The ID of the first instance to draw.
Trait Implementations§
Source§impl Clone for SDL_GPUIndexedIndirectDrawCommand
impl Clone for SDL_GPUIndexedIndirectDrawCommand
Source§fn clone(&self) -> SDL_GPUIndexedIndirectDrawCommand
fn clone(&self) -> SDL_GPUIndexedIndirectDrawCommand
Returns a duplicate 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 Default for SDL_GPUIndexedIndirectDrawCommand
impl Default for SDL_GPUIndexedIndirectDrawCommand
Source§fn default() -> SDL_GPUIndexedIndirectDrawCommand
fn default() -> SDL_GPUIndexedIndirectDrawCommand
Returns the “default value” for a type. Read more
Source§impl PartialEq for SDL_GPUIndexedIndirectDrawCommand
impl PartialEq for SDL_GPUIndexedIndirectDrawCommand
Source§fn eq(&self, other: &SDL_GPUIndexedIndirectDrawCommand) -> bool
fn eq(&self, other: &SDL_GPUIndexedIndirectDrawCommand) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for SDL_GPUIndexedIndirectDrawCommand
impl Eq for SDL_GPUIndexedIndirectDrawCommand
impl StructuralPartialEq for SDL_GPUIndexedIndirectDrawCommand
Auto Trait Implementations§
impl Freeze for SDL_GPUIndexedIndirectDrawCommand
impl RefUnwindSafe for SDL_GPUIndexedIndirectDrawCommand
impl Send for SDL_GPUIndexedIndirectDrawCommand
impl Sync for SDL_GPUIndexedIndirectDrawCommand
impl Unpin for SDL_GPUIndexedIndirectDrawCommand
impl UnwindSafe for SDL_GPUIndexedIndirectDrawCommand
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