---
title: cpuCacheMode
framework: metal
role: symbol
role_heading: Instance Property
path: metal/mtlheap/cpucachemode
---

# cpuCacheMode

The heap’s CPU cache mode.

## Declaration

```swift
var cpuCacheMode: MTLCPUCacheMode { get }
```

## Discussion

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

## See Also

### Checking a heap’s permanent configuration

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