sdlSetGpuScissor function

void sdlSetGpuScissor(
  1. Pointer<SdlGpuRenderPass> renderPass,
  2. Pointer<SdlRect> 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.1.3.

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

Implementation

void sdlSetGpuScissor(
    Pointer<SdlGpuRenderPass> renderPass, Pointer<SdlRect> scissor) {
  final sdlSetGpuScissorLookupFunction = libSdl3.lookupFunction<
      Void Function(
          Pointer<SdlGpuRenderPass> renderPass, Pointer<SdlRect> scissor),
      void Function(Pointer<SdlGpuRenderPass> renderPass,
          Pointer<SdlRect> scissor)>('SDL_SetGPUScissor');
  return sdlSetGpuScissorLookupFunction(renderPass, scissor);
}