Skip to content

TSdlGpuVertexBufferDescription

A record specifying the parameters of vertex buffers used in a graphics pipeline.

When you call TSdlGpuRenderPass.BindVertexBuffers, you specify the binding slots of the vertex buffers. For example if you called TSdlGpuRenderPass.BindVertexBuffers with a AFirstSlot of 2 and ANumBindings of 3, the binding slots 2, 3, 4 would be used by the vertex buffers you pass in.

Vertex attributes are linked to buffers via the BufferSlot field of TSdlGpuVertexAttribute. For example, if an attribute has a buffer_slot of 0, then that attribute belongs to the vertex buffer bound at slot 0.

Definition

Unit: Neslib.Sdl3.Gpu

type TSdlGpuVertexBufferDescription = record ... end;

See Also

Properties

Name Description
InputRate Whether attribute addressing is a function of the vertex index or instance index.
Pitch The byte pitch between consecutive elements of the vertex buffer.
Slot The binding slot of the vertex buffer.

Property Descriptions

InputRate

Whether attribute addressing is a function of the vertex index or instance index.

property InputRate: TSdlGpuVertexInputRate read GetInputRate write SetInputRate

Type: TSdlGpuVertexInputRate


Pitch

The byte pitch between consecutive elements of the vertex buffer.

property Pitch: Integer read FHandle.pitch write FHandle.pitch

Type: Integer


Slot

The binding slot of the vertex buffer.

property Slot: Integer read FHandle.slot write FHandle.slot

Type: Integer