drawPrimitivesIndirect method

void drawPrimitivesIndirect(
  1. Pointer<SdlGpuBuffer> buffer,
  2. int offset,
  3. int drawCount
)

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

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.

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

\since This function is available since SDL 3.2.0.

extern SDL_DECLSPEC void SDLCALL SDL_DrawGPUPrimitivesIndirect( SDL_GPURenderPass *render_pass, SDL_GPUBuffer *buffer, Uint32 offset, Uint32 draw_count)

See also:

Implementation

void drawPrimitivesIndirect(
  Pointer<SdlGpuBuffer> buffer,
  int offset,
  int drawCount,
) => sdlDrawGpuPrimitivesIndirect(this, buffer, offset, drawCount);