---
name: "SDL_BindGPUVertexBuffers"
section: "3"
platform: "linux"
package: "libsdl3-doc"
version: "3.2.10+ds-1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/SDL_BindGPUVertexBuffers"
---

# SDL\_BindGPUVertexBuffers(3)

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

## NAME

SDL\_BindGPUVertexBuffers - Binds vertex buffers on a command buffer for use with subsequent draw calls.

## HEADER FILE

Defined in SDL3/SDL\_gpu.h

## SYNOPSIS

```
#include "SDL3/SDL.h"
```

**void SDL\_BindGPUVertexBuffers(**     **SDL\_GPURenderPass \*render\_pass,**     **Uint32 first\_slot,**     **const SDL\_GPUBufferBinding \*bindings,**     **Uint32 num\_bindings);**

## FUNCTION PARAMETERS

- *render\_pass*

  a render pass handle.

- *first\_slot*

  the vertex buffer slot to begin binding from.

- *bindings*

  an array of  **SDL\_GPUBufferBinding**\
    structs containing vertex buffers and offset values.

- *num\_bindings*

  the number of bindings in the bindings array.

## AVAILABILITY

This function is available since SDL 3.2.0.
