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_GPUVertexBufferDescription - A structure specifying the parameters of vertex buffers used in a

Availability

       This struct is available since SDL 3.2.0.

Description

       When you call SDL_BindGPUVertexBuffers , you specify the binding slots of the vertex buffers. For example
       if you called

       SDL_BindGPUVertexBuffers
        with a first_slot of 2 and num_bindings 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 buffer_slot field of

       SDL_GPUVertexAttribute . For example, if an attribute has a buffer_slot of 0, then that attribute belongs
       to the vertex buffer bound at slot 0.

Header File

       Defined in SDL3/SDL_gpu.h

Name

       SDL_GPUVertexBufferDescription  -  A  structure  specifying  the  parameters  of vertex buffers used in a
       graphics pipeline.

See Also

(3), SDL_GPUVertexAttribute(3type), (3), SDL_GPUVertexInputRate(3type)

Simple Directmedia Layer                           SDL 3.2.10              SDL_GPUVertexBufferDescription(3type)

Synopsis

#include"SDL3/SDL.h"typedefstructSDL_GPUVertexBufferDescription{Uint32slot;/**<Thebindingslotofthevertexbuffer.*/Uint32pitch;/**<Thebytepitchbetweenconsecutiveelementsofthevertexbuffer.*/SDL_GPUVertexInputRateinput_rate;/**<Whetherattributeaddressingisafunctionofthevertexindexorinstanceindex.*/Uint32instance_step_rate;/**<Reservedforfutureuse.Mustbesetto0.*/}SDL_GPUVertexBufferDescription;

See Also