Skip to content

TSdlGpuIndirectDrawCommand

A record specifying the parameters of an indirect draw command.

Note that the FirstVertex and FirstInstance fields 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.

Definition

Unit: Neslib.Sdl3.Gpu

type TSdlGpuIndirectDrawCommand = record ... end;

See Also

Fields

Name Description
FirstInstance The ID of the first instance to draw.
FirstVertex The index of the first vertex to draw.
NumInstances The number of instances to draw.
NumVertices The number of vertices to draw.

Field Descriptions

FirstInstance

The ID of the first instance to draw.

var FirstInstance: Integer

Type: Integer


FirstVertex

The index of the first vertex to draw.

var FirstVertex: Integer

Type: Integer


NumInstances

The number of instances to draw.

var NumInstances: Integer

Type: Integer


NumVertices

The number of vertices to draw.

var NumVertices: Integer

Type: Integer