---
title: MPSImageHistogramInfo
framework: metalperformanceshaders
role: symbol
role_heading: Structure
path: metalperformanceshaders/mpsimagehistograminfo
---

# MPSImageHistogramInfo

The information used to compute the histogram channels of an image.

## Declaration

```swift
struct MPSImageHistogramInfo
```

## Topics

### Fields

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

### Initializers

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

## Relationships

### Conforms To

- [BitwiseCopyable](swift/bitwisecopyable.md)
- [Sendable](swift/sendable.md)

## See Also

### Methods

- [init(device:histogramInfo:)](metalperformanceshaders/mpsimagehistogram/init(device:histograminfo:).md)
- [encode(to:sourceTexture:histogram:histogramOffset:)](metalperformanceshaders/mpsimagehistogram/encode(to:sourcetexture:histogram:histogramoffset:).md)
- [histogramSize(forSourceFormat:)](metalperformanceshaders/mpsimagehistogram/histogramsize(forsourceformat:).md)
