Function SDL_SetGPUViewport

pub unsafe extern "C" fn SDL_SetGPUViewport(
    render_pass: *mut SDL_GPURenderPass,
    viewport: *const SDL_GPUViewport,
)
Available on crate feature dep_sdl3 only.
Expand description

Sets the current viewport state on a command buffer.

§Parameters

  • render_pass: a render pass handle.
  • viewport: the viewport to set.

§Availability

This function is available since SDL 3.2.0.