---
title: "reshape(withDimensionCount:dimensionSizes:)"
framework: metalperformanceshaders
role: symbol
role_heading: Instance Method
path: "metalperformanceshaders/mpsndarraydescriptor/reshape(withdimensioncount:dimensionsizes:)"
---

# reshape(withDimensionCount:dimensionSizes:)

## Declaration

```swift
func reshape(withDimensionCount numberOfDimensions: Int, dimensionSizes: UnsafeMutablePointer<Int>)
```
