---
name: "SDL_BindGPUIndexBuffer"
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_BindGPUIndexBuffer"
---

# SDL\_BindGPUIndexBuffer(3)

Binds an index buffer on a command buffer for use with subsequent draw calls.

## NAME

SDL\_BindGPUIndexBuffer - Binds an index buffer 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\_BindGPUIndexBuffer(**     **SDL\_GPURenderPass \*render\_pass,**     **const SDL\_GPUBufferBinding \*binding,**     **SDL\_GPUIndexElementSize index\_element\_size);**

## FUNCTION PARAMETERS

- *render\_pass*

  a render pass handle.

- *binding*

  a pointer to a struct containing an index buffer and offset.

- *index\_element\_size*

  whether the index values in the buffer are 16- or 32-bit.

## AVAILABILITY

This function is available since SDL 3.2.0.
