<!--
{
  "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

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

A heap that automatically places new resource allocations.

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

The app controls placement of resources on the heap.

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

The heap contains sparse texture tiles.

## Relationships

### Conforms To

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`Equatable`](/documentation/Swift/Equatable)

[`Hashable`](/documentation/Swift/Hashable)

[`Sendable`](/documentation/Swift/Sendable)

[`BitwiseCopyable`](/documentation/Swift/BitwiseCopyable)

[`RawRepresentable`](/documentation/Swift/RawRepresentable)

---

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)