SDL_GPUVertexAttribute

A structure specifying a vertex attribute.

All vertex attribute locations provided to an SDL_GPUVertexInputState must be unique.

extern (C) nothrow @nogc
struct SDL_GPUVertexAttribute {}

Members

Variables

buffer_slot
Uint32 buffer_slot;

The binding slot of the associated vertex buffer.

format
SDL_GPUVertexElementFormat format;

The size and type of the attribute data.

location
Uint32 location;

The shader input location index.

offset
Uint32 offset;

The byte offset of this attribute relative to the start of the vertex element.

See Also

Meta