DOKK / manpages / debian 13 / libsdl3-doc / SDL_DrawGPUIndexedPrimitivesIndirect.3.en
SDL_DrawGPUIndexedPrimitivesIndirect(3) SDL3 FUNCTIONS SDL_DrawGPUIndexedPrimitivesIndirect(3)

SDL_DrawGPUIndexedPrimitivesIndirect - Draws data using bound graphics state with an index buffer enabled and with draw parameters set from a buffer.

Defined in SDL3/SDL_gpu.h

#include "SDL3/SDL.h"
void SDL_DrawGPUIndexedPrimitivesIndirect(
    SDL_GPURenderPass *render_pass,
    SDL_GPUBuffer *buffer,
    Uint32 offset,
    Uint32 draw_count);

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

SDL_GPUIndexedIndirectDrawCommand . You must not call this function before binding a graphics pipeline.

a render pass handle.
a buffer containing draw parameters.
the offset to start reading from the draw buffer.
the number of draw parameter sets that should be read from the draw buffer.

This function is available since SDL 3.2.0.

SDL 3.2.10 Simple Directmedia Layer