---
title: maxPixelValue
framework: metalperformanceshaders
role: symbol
role_heading: Instance Property
path: metalperformanceshaders/mpsimagehistograminfo/maxpixelvalue
---

# maxPixelValue

Specifies the maximum pixel value.  Any pixel value greater than this will be clipped to this value (for the purposes of histogram calculation), and assigned to the first histogram entry. This maximum value is applied to each of the four channels separately.

## Declaration

```swift
var maxPixelValue: vector_float4
```

## See Also

### Fields

- [numberOfHistogramEntries](metalperformanceshaders/mpsimagehistograminfo/numberofhistogramentries.md)
- [histogramForAlpha](metalperformanceshaders/mpsimagehistograminfo/histogramforalpha.md)
- [minPixelValue](metalperformanceshaders/mpsimagehistograminfo/minpixelvalue.md)
