SDL_DRAWGPUPRIMITIVESINDIRECT(3)
β¨ SDL_DrawGPUPrimitivesIndirect β¨
okay bestie, welcome to the SDL3 functions manual π this one lives in the <SDL3/SDL_gpu.h> cinematic universe and it's literally called SDL_DrawGPUPrimitivesIndirect π
πΈ NAME πΈ
SDL_DrawGPUPrimitivesIndirect β draws data using bound graphics state and with draw parameters set from a buffer π
π¦ SYNOPSIS π¦
#include <SDL3/SDL_gpu.h>
void SDL_DrawGPUPrimitivesIndirect(
SDL_GPURenderPass *render_pass,
SDL_GPUBuffer *buffer,
Uint32 offset,
Uint32 draw_count);
no cap, that's the whole signature π«Ά
π DESCRIPTION π
so here's the tea, bestie β the buffer has to consist of tightly-packed draw parameter sets, and each one of those sets has to match the layout of SDL_GPUIndirectDrawCommand β¨ like, exactly. no gaps, no extra padding, no freestyling π
and listen β you must NOT call this function before binding a graphics pipeline. fr fr. bind that pipeline first or it's giving chaos π
π 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 icon is available since SDL 3.2.0 β so if you're on anything older... bestie, upgrade π
and that's the whole vibe check β go forth and draw those primitives indirectly, you absolute main character π
Simple Directmedia Layer π SDL 3.4.18 πΈ β mwah, sending this one off with a kiss, catch you in the next manpage bestie ππ¦π
π¦ where this page comes from
- fedora 43: SDL3-devel 3.4.18-1.fc43 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 43: SDL3-devel 3.4.18-1.fc43 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 44: SDL3-devel 3.4.18-1.fc44 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 44: SDL3-devel 3.4.18-1.fc44 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms