bindVertexBuffers method

void bindVertexBuffers(
  1. List<SdlxGpuBufferBinding> bindings, {
  2. int firstSlot = 0,
})

Binds vertex buffers on a command buffer for use with subsequent draw calls.

\param render_pass a render pass handle. \param first_slot the vertex buffer slot to begin binding from. \param bindings an array of SDL_GPUBufferBinding structs containing vertex buffers and offset values. \param num_bindings the number of bindings in the bindings array.

\since This function is available since SDL 3.2.0.

extern SDL_DECLSPEC void SDLCALL SDL_BindGPUVertexBuffers( SDL_GPURenderPass *render_pass, Uint32 first_slot, const SDL_GPUBufferBinding *bindings, Uint32 num_bindings)

See also:

Implementation

void bindVertexBuffers(
  List<SdlxGpuBufferBinding> bindings, {
  int firstSlot = 0,
}) => sdlxBindGpuVertexBuffers(this, bindings, firstSlot: firstSlot);