<!--
{
  "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/MTLHeapDescriptor/resourceOptions",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "Metal"
    ],
    "preciseIdentifier" : "c:objc(cs)MTLHeapDescriptor(py)resourceOptions"
  },
  "title" : "resourceOptions"
}
-->

# resourceOptions

The combined behavior for any resources you allocate from the heaps you create with this descriptor.

```
var resourceOptions: MTLResourceOptions { get set }
```

## Discussion

This property aggregates the values of [`storageMode`](/documentation/Metal/MTLHeapDescriptor/storageMode), [`cpuCacheMode`](/documentation/Metal/MTLHeapDescriptor/cpuCacheMode), and [`hazardTrackingMode`](/documentation/Metal/MTLHeapDescriptor/hazardTrackingMode). Any modifications you make to this property affect the other properties, and vice versa.

---

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)