<!--
{
  "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

[`MTLCPUCacheModeDefaultCache`](/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.

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

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

## Relationships

### Conforms To

[`RawRepresentable`](/documentation/Swift/RawRepresentable)

[`Sendable`](/documentation/Swift/Sendable)

[`Equatable`](/documentation/Swift/Equatable)

[`BitwiseCopyable`](/documentation/Swift/BitwiseCopyable)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`Hashable`](/documentation/Swift/Hashable)

---

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)