logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

SDL_DrawGPUPrimitivesIndirect - Draws data using bound graphics state and with draw parameters set from a

Availability

       This function is available since SDL 3.2.0.

Simple Directmedia Layer                           SDL 3.2.20                   SDL_DrawGPUPrimitivesIndirect(3)

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.

Name

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

Synopsis

#include<SDL3/SDL_gpu.h>voidSDL_DrawGPUPrimitivesIndirect(SDL_GPURenderPass*render_pass,SDL_GPUBuffer*buffer,Uint32offset,Uint32draw_count);

See Also