<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "macCatalyst: -",
    "macOS: -",
    "tvOS: -",
    "visionOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "Metal",
  "identifier" : "/documentation/Metal/MTLScissorRect",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Metal"
    ],
    "preciseIdentifier" : "c:@SA@MTLScissorRect"
  },
  "title" : "MTLScissorRect"
}
-->

# MTLScissorRect

A rectangle for the scissor fragment test.

```
struct MTLScissorRect
```

## Topics

### Creating a scissor rectangle

[`init()`](/documentation/Metal/MTLScissorRect/init())

[`init(x:y:width:height:)`](/documentation/Metal/MTLScissorRect/init(x:y:width:height:))

### Specifying scissor boundaries

[`height`](/documentation/Metal/MTLScissorRect/height)

The height of the scissor rectangle, in pixels.

[`width`](/documentation/Metal/MTLScissorRect/width)

The width of the scissor rectangle, in pixels.

[`x`](/documentation/Metal/MTLScissorRect/x)

The x window coordinate of the upper-left corner of the scissor rectangle.

[`y`](/documentation/Metal/MTLScissorRect/y)

The y window coordinate of the upper-left corner of the scissor rectangle.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)