Sets the current viewport state on a command buffer.
Defined in <SDL3/SDL_gpu.h>
void SDL_SetGPUViewport(
SDL_GPURenderPass *render_pass,const SDL_GPUViewport *viewport);
SDL_GPURenderPass * | render_pass | a render pass handle. |
const SDL_GPUViewport * | viewport | the viewport to set. |
This function is available since SDL 3.1.3.