table of contents
other versions
- trixie 3.2.10+ds-1
 - testing 3.2.26+ds-1
 - unstable 3.2.26+ds-2
 - experimental 3.3.2+git20251103~dc5b136+ds-1
 
| SDL_DrawGPUPrimitivesIndirect(3) | SDL3 FUNCTIONS | SDL_DrawGPUPrimitivesIndirect(3) | 
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.
| SDL 3.2.10 | Simple Directmedia Layer |