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

# resourceOptions

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

## Declaration

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

## Discussion

Discussion This property aggregates the values of storageMode, cpuCacheMode, and hazardTrackingMode. Any modifications you make to this property affect the other properties, and vice versa.

## See Also

### Configuring a heap

- [type](metal/mtlheapdescriptor/type.md)
- [storageMode](metal/mtlheapdescriptor/storagemode.md)
- [cpuCacheMode](metal/mtlheapdescriptor/cpucachemode.md)
- [hazardTrackingMode](metal/mtlheapdescriptor/hazardtrackingmode.md)
- [size](metal/mtlheapdescriptor/size.md)
- [sparsePageSize](metal/mtlheapdescriptor/sparsepagesize.md)
