<!--
{
  "availability" : [
    "iOS: 8.0.0 -",
    "iPadOS: 8.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.11.0 -",
    "tvOS: -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Metal",
  "identifier" : "/documentation/Metal/MTLCPUCacheMode",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "Metal"
    ],
    "preciseIdentifier" : "c:@E@MTLCPUCacheMode"
  },
  "title" : "MTLCPUCacheMode"
}
-->

# MTLCPUCacheMode

Options for the CPU cache mode that define the CPU mapping of the resource.

```
enum MTLCPUCacheMode
```

## Topics

### Specifying the cache mode

[`MTLCPUCacheMode.defaultCache`](/documentation/Metal/MTLCPUCacheMode/defaultCache)

The default CPU cache mode for the resource, which guarantees that read and write operations are executed in the expected order.

[`MTLCPUCacheMode.writeCombined`](/documentation/Metal/MTLCPUCacheMode/writeCombined)

A write-combined CPU cache mode that is optimized for resources that the CPU writes into, but never reads.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)