SDL 3.0
SDL_GPUIndexedIndirectDrawCommand Struct Reference

#include <SDL_gpu.h>

Data Fields

Uint32 num_indices
 
Uint32 num_instances
 
Uint32 first_index
 
Sint32 vertex_offset
 
Uint32 first_instance
 

Detailed 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). If your shader depends on these variables, the correlating draw call parameter MUST be 0.

Since
This struct is available since SDL 3.0.0
See also
SDL_DrawGPUIndexedPrimitivesIndirect

Definition at line 1260 of file SDL_gpu.h.

Field Documentation

◆ first_index

Uint32 SDL_GPUIndexedIndirectDrawCommand::first_index

The base index within the index buffer.

Definition at line 1264 of file SDL_gpu.h.

◆ first_instance

Uint32 SDL_GPUIndexedIndirectDrawCommand::first_instance

The ID of the first instance to draw.

Definition at line 1266 of file SDL_gpu.h.

◆ num_indices

Uint32 SDL_GPUIndexedIndirectDrawCommand::num_indices

The number of indices to draw per instance.

Definition at line 1262 of file SDL_gpu.h.

◆ num_instances

Uint32 SDL_GPUIndexedIndirectDrawCommand::num_instances

The number of instances to draw.

Definition at line 1263 of file SDL_gpu.h.

◆ vertex_offset

Sint32 SDL_GPUIndexedIndirectDrawCommand::vertex_offset

The value added to the vertex index before indexing into the vertex buffer.

Definition at line 1265 of file SDL_gpu.h.


The documentation for this struct was generated from the following file: