Function SDL_BindGPUIndexBuffer
pub unsafe extern "C" fn SDL_BindGPUIndexBuffer(
render_pass: *mut SDL_GPURenderPass,
binding: *const SDL_GPUBufferBinding,
index_element_size: SDL_GPUIndexElementSize,
)
Available on crate feature
dep_sdl3
only.Expand description
Binds an index buffer on a command buffer for use with subsequent draw calls.
§Parameters
render_pass
: a render pass handle.binding
: a pointer to a struct containing an index buffer and offset.index_element_size
: whether the index values in the buffer are 16- or 32-bit.
§Availability
This function is available since SDL 3.2.0.