logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

SDL_GPUVertexAttribute - A structure specifying a vertex attribute.

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;

See Also