---
title: MPSNDArrayDescriptor
framework: metalperformanceshaders
role: symbol
role_heading: Class
path: metalperformanceshaders/mpsndarraydescriptor
---

# MPSNDArrayDescriptor

## Declaration

```swift
class MPSNDArrayDescriptor
```

## Topics

### Initializers

- [init(dataType:dimensionCount:dimensionSizes:)](metalperformanceshaders/mpsndarraydescriptor/init(datatype:dimensioncount:dimensionsizes:).md)
- [init(dataType:shape:)](metalperformanceshaders/mpsndarraydescriptor/init(datatype:shape:).md)

### Instance Properties

- [dataType](metalperformanceshaders/mpsndarraydescriptor/datatype.md)
- [numberOfDimensions](metalperformanceshaders/mpsndarraydescriptor/numberofdimensions.md)
- [preferPackedRows](metalperformanceshaders/mpsndarraydescriptor/preferpackedrows.md)

### Instance Methods

- [dimensionOrder()](metalperformanceshaders/mpsndarraydescriptor/dimensionorder().md)
- [getShape()](metalperformanceshaders/mpsndarraydescriptor/getshape().md)
- [length(ofDimension:)](metalperformanceshaders/mpsndarraydescriptor/length(ofdimension:).md)
- [permute(withDimensionOrder:)](metalperformanceshaders/mpsndarraydescriptor/permute(withdimensionorder:).md)
- [reshape(withDimensionCount:dimensionSizes:)](metalperformanceshaders/mpsndarraydescriptor/reshape(withdimensioncount:dimensionsizes:).md)
- [reshape(withShape:)](metalperformanceshaders/mpsndarraydescriptor/reshape(withshape:).md)
- [sliceDimension(_:withSubrange:)](metalperformanceshaders/mpsndarraydescriptor/slicedimension(_:withsubrange:).md)
- [sliceRange(forDimension:)](metalperformanceshaders/mpsndarraydescriptor/slicerange(fordimension:).md)
- [transposeDimension(_:withDimension:)](metalperformanceshaders/mpsndarraydescriptor/transposedimension(_:withdimension:).md)

## Relationships

### Inherits From

- [NSObject](objectivec/nsobject-swift.class.md)

### Conforms To

- [CVarArg](swift/cvararg.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)
