---
title: resourceOptions
framework: metal
role: symbol
role_heading: Instance Property
path: metal/mtlresource/resourceoptions
---

# resourceOptions

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

## Declaration

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

## Discussion

Discussion The value of this property aggregates the values of storageMode, cpuCacheMode, and hazardTrackingMode.

## See Also

### Reading memory and storage properties

- [cpuCacheMode](metal/mtlresource/cpucachemode.md)
- [storageMode](metal/mtlresource/storagemode.md)
- [hazardTrackingMode](metal/mtlresource/hazardtrackingmode.md)
- [MTLCPUCacheMode](metal/mtlcpucachemode.md)
- [MTLStorageMode](metal/mtlstoragemode.md)
- [MTLHazardTrackingMode](metal/mtlhazardtrackingmode.md)
