---
name: "SDL_DispatchGPUCompute"
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_DispatchGPUCompute"
---

# SDL\_DispatchGPUCompute(3)

Dispatches compute work.

## NAME

SDL\_DispatchGPUCompute - Dispatches compute work.

## HEADER FILE

Defined in SDL3/SDL\_gpu.h

## SYNOPSIS

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

**void SDL\_DispatchGPUCompute(**     **SDL\_GPUComputePass \*compute\_pass,**     **Uint32 groupcount\_x,**     **Uint32 groupcount\_y,**     **Uint32 groupcount\_z);**

## DESCRIPTION

You must not call this function before binding a compute pipeline.

A VERY IMPORTANT NOTE If you dispatch multiple times in a compute pass, and the dispatches write to the same resource region as each other, there is no guarantee of which order the writes will occur. If the write order matters, you MUST end the compute pass and begin another one.

## FUNCTION PARAMETERS

- *compute\_pass*

  a compute pass handle.

- *groupcount\_x*

  number of local workgroups to dispatch in the X dimension.

- *groupcount\_y*

  number of local workgroups to dispatch in the Y dimension.

- *groupcount\_z*

  number of local workgroups to dispatch in the Z dimension.

## AVAILABILITY

This function is available since SDL 3.2.0.
