---
title: "init(dataType:shape:)"
framework: metalperformanceshaders
role: symbol
role_heading: Initializer
path: "metalperformanceshaders/mpsndarraydescriptor/init(datatype:shape:)"
---

# init(dataType:shape:)

## Declaration

```swift
convenience init(dataType: MPSDataType, shape: [NSNumber])
```
