---
name: "SDL_SetGPUScissor"
section: "3"
platform: "linux"
package: "libsdl3-doc"
version: "3.2.10+ds-1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/SDL_SetGPUScissor"
---

# SDL\_SetGPUScissor(3)

Sets the current scissor state on a command buffer.

## NAME

SDL\_SetGPUScissor - Sets the current scissor state on a command buffer.

## HEADER FILE

Defined in SDL3/SDL\_gpu.h

## SYNOPSIS

```
#include "SDL3/SDL.h"
```

**void SDL\_SetGPUScissor(**     **SDL\_GPURenderPass \*render\_pass,**     **const SDL\_Rect \*scissor);**

## FUNCTION PARAMETERS

- *render\_pass*

  a render pass handle.

- *scissor*

  the scissor area to set.

## AVAILABILITY

This function is available since SDL 3.2.0.
