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

# defaultAllocator()

## Declaration

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

## See Also

### Methods to Get an Image Allocator

- [MPSImageAllocator](metalperformanceshaders/mpsimageallocator.md)
