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

# cpuCacheMode

The CPU cache mode that defines the CPU mapping of the resource.

## Declaration

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

## Discussion

Discussion The cache mode is set when you create the resource and cannot be changed.

## See Also

### Reading memory and storage properties

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