---
name: "SDL_DrawGPUPrimitivesIndirect"
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_DrawGPUPrimitivesIndirect"
---

# SDL\_DrawGPUPrimitivesIndirect(3)

Draws data using bound graphics state and with draw parameters set from a buffer.

## NAME

SDL\_DrawGPUPrimitivesIndirect - Draws data using bound graphics state and with draw parameters set from a buffer.

## HEADER FILE

Defined in SDL3/SDL\_gpu.h

## SYNOPSIS

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

**void SDL\_DrawGPUPrimitivesIndirect(**     **SDL\_GPURenderPass \*render\_pass,**     **SDL\_GPUBuffer \*buffer,**     **Uint32 offset,**     **Uint32 draw\_count);**

## DESCRIPTION

The buffer must consist of tightly-packed draw parameter sets that each match the layout of

**SDL\_GPUIndirectDrawCommand** . You must not call this function before binding a graphics pipeline.

## FUNCTION PARAMETERS

- *render\_pass*

  a render pass handle.

- *buffer*

  a buffer containing draw parameters.

- *offset*

  the offset to start reading from the draw buffer.

- *draw\_count*

  the number of draw parameter sets that should be read from the draw buffer.

## AVAILABILITY

This function is available since SDL 3.2.0.
