---
name: "SDL_BindGPUVertexSamplers"
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_BindGPUVertexSamplers"
---

# SDL\_BindGPUVertexSamplers(3)

Binds texture-sampler pairs for use on the vertex shader.

## NAME

SDL\_BindGPUVertexSamplers - Binds texture-sampler pairs for use on the vertex shader.

## HEADER FILE

Defined in SDL3/SDL\_gpu.h

## SYNOPSIS

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

**void SDL\_BindGPUVertexSamplers(**     **SDL\_GPURenderPass \*render\_pass,**     **Uint32 first\_slot,**     **const SDL\_GPUTextureSamplerBinding \*texture\_sampler\_bindings,**     **Uint32 num\_bindings);**

## DESCRIPTION

The textures must have been created with

**SDL\_GPU\_TEXTUREUSAGE\_SAMPLER** .

Be sure your shader is set up according to the requirements documented in

**SDL\_CreateGPUShader** ().

## FUNCTION PARAMETERS

- *render\_pass*

  a render pass handle.

- *first\_slot*

  the vertex sampler slot to begin binding from.

- *texture\_sampler\_bindings*

  an array of texture-sampler binding structs.

- *num\_bindings*

  the number of texture-sampler pairs to bind from the array.

## AVAILABILITY

This function is available since SDL 3.2.0.

## SEE ALSO

**•**(3), [**SDL\_CreateGPUShader**(3)](/SDL_CreateGPUShader/3.md)
