---
title: "newHeap(with:)"
framework: metalperformanceshaders
role: symbol
role_heading: Instance Method
path: "metalperformanceshaders/mpsheapprovider/newheap(with:)"
---

# newHeap(with:)

## Declaration

```swift
func newHeap(with descriptor: MTLHeapDescriptor) -> (any MTLHeap)?
```
