<!--
{
  "availability" : [
    "iOS: 8.0.0 -",
    "iPadOS: 8.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.11.0 -",
    "tvOS: -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Metal",
  "identifier" : "/documentation/Metal/MTLTextureDescriptor/resourceOptions",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "Metal"
    ],
    "preciseIdentifier" : "c:objc(cs)MTLTextureDescriptor(py)resourceOptions"
  },
  "title" : "resourceOptions"
}
-->

# resourceOptions

The behavior of a new memory allocation.

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

## Discussion

This property only has an effect when you are allocating a new texture. If you are creating a texture whose data comes from another [`MTLResource`](/documentation/Metal/MTLResource) object, this property value is ignored, and the value of the original resource is used instead.

The value of this property aggregates the values of [`storageMode`](/documentation/Metal/MTLTextureDescriptor/storageMode), [`cpuCacheMode`](/documentation/Metal/MTLTextureDescriptor/cpuCacheMode), and [`hazardTrackingMode`](/documentation/Metal/MTLTextureDescriptor/hazardTrackingMode). If you modify this property, the other properties also change, 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)