sdlSetGpuViewport function
Sets the current viewport state on a command buffer.
\param render_pass a render pass handle. \param viewport the viewport to set.
\since This function is available since SDL 3.1.3.
extern SDL_DECLSPEC void SDLCALL SDL_SetGPUViewport( SDL_GPURenderPass *render_pass, const SDL_GPUViewport *viewport)
Implementation
void sdlSetGpuViewport(
Pointer<SdlGpuRenderPass> renderPass, Pointer<SdlGpuViewport> viewport) {
final sdlSetGpuViewportLookupFunction = libSdl3.lookupFunction<
Void Function(Pointer<SdlGpuRenderPass> renderPass,
Pointer<SdlGpuViewport> viewport),
void Function(Pointer<SdlGpuRenderPass> renderPass,
Pointer<SdlGpuViewport> viewport)>('SDL_SetGPUViewport');
return sdlSetGpuViewportLookupFunction(renderPass, viewport);
}