sdlSetGpuScissor function gpu

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.2.0.

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 = _libSdl
      .lookupFunction<
        Void Function(
          Pointer<SdlGpuRenderPass> renderPass,
          Pointer<SdlRect> scissor,
        ),
        void Function(
          Pointer<SdlGpuRenderPass> renderPass,
          Pointer<SdlRect> scissor,
        )
      >('SDL_SetGPUScissor');
  return sdlSetGpuScissorLookupFunction(renderPass, scissor);
}