---
title: clipRectSource
framework: metalperformanceshaders
role: symbol
role_heading: Instance Property
path: metalperformanceshaders/mpsimagehistogram/cliprectsource
---

# clipRectSource

The source rectangle to use when reading data.

## Declaration

```swift
var clipRectSource: MTLRegion { get set }
```

## Discussion

Discussion This value indicates which part of the source image to read from. If the value of clipRectSource does not lie completely within the source image, then the intersection of the image bounds and the value of clipRectSource will be used. The value of clipRectSource replaces the offset value for this filter, which is ignored. The default value is MPSRectNoClip, indicating that the entire source texture is used.

## See Also

### Properties

- [zeroHistogram](metalperformanceshaders/mpsimagehistogram/zerohistogram.md)
- [histogramInfo](metalperformanceshaders/mpsimagehistogram/histograminfo.md)
- [minPixelThresholdValue](metalperformanceshaders/mpsimagehistogram/minpixelthresholdvalue.md)
