---
title: "length(ofDimension:)"
framework: metalperformanceshaders
role: symbol
role_heading: Instance Method
path: "metalperformanceshaders/mpsndarray/length(ofdimension:)"
---

# length(ofDimension:)

## Declaration

```swift
func length(ofDimension dimensionIndex: Int) -> Int
```
