sdlxSetGpuScissor function gpu

void sdlxSetGpuScissor(
  1. Pointer<SdlGpuRenderPass> renderPass,
  2. SdlxRect scissor
)

Sets the current scissor state on a command buffer.

\param render_pass a render pass handle. \param scissor the scissor area to set.

\since This function is available since SDL 3.2.0.

extern SDL_DECLSPEC void SDLCALL SDL_SetGPUScissor( SDL_GPURenderPass *render_pass, const SDL_Rect *scissor)

Implementation

void sdlxSetGpuScissor(Pointer<SdlGpuRenderPass> renderPass, SdlxRect scissor) {
  final pointer = scissor.calloc();
  sdlSetGpuScissor(renderPass, pointer);
  pointer.callocFree();
}