<!--
{
  "availability" : [
    "iOS: 13.0.0 -",
    "iPadOS: 13.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.15.0 -",
    "tvOS: 13.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Metal",
  "identifier" : "/documentation/Metal/MTLHeapType",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "Metal"
    ],
    "preciseIdentifier" : "c:@E@MTLHeapType"
  },
  "title" : "MTLHeapType"
}
-->

# MTLHeapType

The options you use to choose the heap type.

```
enum MTLHeapType
```

## Topics

### Specifying the heap type

[`MTLHeapType.automatic`](/documentation/Metal/MTLHeapType/automatic)

A heap that automatically places new resource allocations.

[`MTLHeapType.placement`](/documentation/Metal/MTLHeapType/placement)

The app controls placement of resources on the heap.

[`MTLHeapType.sparse`](/documentation/Metal/MTLHeapType/sparse)

The heap contains sparse texture tiles.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)