Function SDL_PushGPUVertexUniformData

pub unsafe extern "C" fn SDL_PushGPUVertexUniformData(
    command_buffer: *mut SDL_GPUCommandBuffer,
    slot_index: u32,
    data: *const c_void,
    length: u32,
)
Available on crate feature dep_sdl3 only.
Expand description

Pushes data to a vertex uniform slot on the command buffer.

Subsequent draw calls will use this uniform data.

The data being pushed must respect std140 layout conventions. In practical terms this means you must ensure that vec3 and vec4 fields are 16-byte aligned.

§Parameters

  • command_buffer: a command buffer.
  • slot_index: the vertex uniform slot to push data to.
  • data: client data to write.
  • length: the length of the data to write.

§Availability

This function is available since SDL 3.2.0.