---
title: storageMode
framework: metal
role: symbol
role_heading: Instance Property
path: metal/mtlheap/storagemode
---

# storageMode

The heap’s storage mode.

## Declaration

```swift
var storageMode: MTLStorageMode { get }
```

## Discussion

Discussion Any resources you allocate on the heap have this storage mode.

## See Also

### Checking a heap’s permanent configuration

- [device](metal/mtlheap/device.md)
- [type](metal/mtlheap/type.md)
- [cpuCacheMode](metal/mtlheap/cpucachemode.md)
- [hazardTrackingMode](metal/mtlheap/hazardtrackingmode.md)
- [resourceOptions](metal/mtlheap/resourceoptions.md)
