---
title: zeroHistogram
framework: metalperformanceshaders
role: symbol
role_heading: Instance Property
path: metalperformanceshaders/mpsimagehistogram/zerohistogram
---

# zeroHistogram

Determines whether to zero-initialize the histogram results.

## Declaration

```swift
var zeroHistogram: Bool { get set }
```

## Discussion

Discussion Determines whether the memory region in which the histogram results are to be written in the histogram buffer are to be zero-initialized or not. The default value is true.

## See Also

### Properties

- [clipRectSource](metalperformanceshaders/mpsimagehistogram/cliprectsource.md)
- [histogramInfo](metalperformanceshaders/mpsimagehistogram/histograminfo.md)
- [minPixelThresholdValue](metalperformanceshaders/mpsimagehistogram/minpixelthresholdvalue.md)
