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

# resourceOptions

The storage mode, CPU cache mode, and hazard tracking mode of the resource.

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

## Discussion

The value of this property aggregates the values of [`storageMode`](/documentation/Metal/MTLResource/storageMode), [`cpuCacheMode`](/documentation/Metal/MTLResource/cpuCacheMode), and [`hazardTrackingMode`](/documentation/Metal/MTLResource/hazardTrackingMode).

---

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)