---
name: "SDL_BindGPUFragmentStorageBuffers"
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_BindGPUFragmentStorageBuffers"
---

# SDL\_BindGPUFragmentStorageBuffers(3)

Binds storage buffers for use on the fragment shader.

## NAME

SDL\_BindGPUFragmentStorageBuffers - Binds storage buffers for use on the fragment shader.

## HEADER FILE

Defined in SDL3/SDL\_gpu.h

## SYNOPSIS

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

**void SDL\_BindGPUFragmentStorageBuffers(**     **SDL\_GPURenderPass \*render\_pass,**     **Uint32 first\_slot,**     **SDL\_GPUBuffer \*const \*storage\_buffers,**     **Uint32 num\_bindings);**

## DESCRIPTION

These buffers must have been created with

**SDL\_GPU\_BUFFERUSAGE\_GRAPHICS\_STORAGE\_READ** .

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 fragment storage buffer slot to begin binding from.

- *storage\_buffers*

  an array of storage buffers.

- *num\_bindings*

  the number of storage buffers 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)
