Function SDL_DrawGPUPrimitivesIndirect

pub unsafe extern "C" fn SDL_DrawGPUPrimitivesIndirect(
    render_pass: *mut SDL_GPURenderPass,
    buffer: *mut SDL_GPUBuffer,
    offset: u32,
    draw_count: u32,
)
Available on crate feature dep_sdl3 only.
Expand description

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.

§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 function is available since SDL 3.2.0.