SDL Wiki
(This is the documentation for SDL3, which is the current stable version. SDL2 was the previous version!)

SDL_DrawGPUPrimitivesIndirect

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

Header File

Defined in <SDL3/SDL_gpu.h>

Syntax

void SDL_DrawGPUPrimitivesIndirect(
    SDL_GPURenderPass *render_pass,
    SDL_GPUBuffer *buffer,
    Uint32 offset,
    Uint32 draw_count);

Function Parameters

SDL_GPURenderPass * render_pass a render pass handle.
SDL_GPUBuffer * buffer a buffer containing draw parameters.
Uint32 offset the offset to start reading from the draw buffer.
Uint32 draw_count the number of draw parameter sets that should be read from the draw buffer.

Remarks

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.

Version

This function is available since SDL 3.1.3.


CategoryAPI, CategoryAPIFunction, CategoryGPU


[ edit | delete | history | feedback | raw ]

[ front page | index | search | recent changes | git repo | offline html ]

All wiki content is licensed under Creative Commons Attribution 4.0 International (CC BY 4.0).
Wiki powered by ghwikipp.