---
title: "histogramSize(forSourceFormat:)"
framework: metalperformanceshaders
role: symbol
role_heading: Instance Method
path: "metalperformanceshaders/mpsimagenormalizedhistogram/histogramsize(forsourceformat:)"
---

# histogramSize(forSourceFormat:)

## Declaration

```swift
func histogramSize(forSourceFormat sourceFormat: MTLPixelFormat) -> Int
```
