---
title: defaultAllocator()
framework: metalperformanceshaders
role: symbol
role_heading: Type Method
path: metalperformanceshaders/mpsndarray/defaultallocator()
---

# defaultAllocator()

## Declaration

```swift
class func defaultAllocator() -> any MPSNDArrayAllocator
```
