SDL_GPUVertexAttribute - A structure specifying a vertex attribute.
Contents
Availability
This struct is available since SDL 3.2.0.
Description
All vertex attribute locations provided to an SDL_GPUVertexInputState must be unique.
Name
SDL_GPUVertexAttribute - A structure specifying a vertex attribute.
See Also
SDL_GPUVertexBufferDescription(3type), SDL_GPUVertexInputState(3type), SDL_GPUVertexElementFormat(3type) Simple Directmedia Layer SDL 3.2.20 SDL_GPUVertexAttribute(3type)
Synopsis
#include<SDL3/SDL_gpu.h>typedefstructSDL_GPUVertexAttribute{Uint32location;/**<Theshaderinputlocationindex.*/Uint32buffer_slot;/**<Thebindingslotoftheassociatedvertexbuffer.*/SDL_GPUVertexElementFormatformat;/**<Thesizeandtypeoftheattributedata.*/Uint32offset;/**<Thebyteoffsetofthisattributerelativetothestartofthevertexelement.*/}SDL_GPUVertexAttribute;