---
name: "SDL_BindGPUComputeStorageBuffers"
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_BindGPUComputeStorageBuffers"
---

# SDL\_BindGPUComputeStorageBuffers(3)

Binds storage buffers as readonly for use on the compute pipeline.

## NAME

SDL\_BindGPUComputeStorageBuffers - Binds storage buffers as readonly for use on the compute pipeline.

## HEADER FILE

Defined in SDL3/SDL\_gpu.h

## SYNOPSIS

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

**void SDL\_BindGPUComputeStorageBuffers(**     **SDL\_GPUComputePass \*compute\_pass,**     **Uint32 first\_slot,**     **SDL\_GPUBuffer \*const \*storage\_buffers,**     **Uint32 num\_bindings);**

## DESCRIPTION

These buffers must have been created with

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

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

**SDL\_CreateGPUShader** ().

## FUNCTION PARAMETERS

- *compute\_pass*

  a compute pass handle.

- *first\_slot*

  the compute storage buffer slot to begin binding from.

- *storage\_buffers*

  an array of storage buffer binding structs.

- *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)
