<!--
{
  "availability" : [
    "iOS: 9.0.0 -",
    "iPadOS: 9.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.11.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "MetalKit",
  "identifier" : "/documentation/MetalKit/MTKTextureLoader/Option/textureCPUCacheMode",
  "metadataVersion" : "0.1.0",
  "role" : "Type Property",
  "symbol" : {
    "kind" : "Type Property",
    "modules" : [
      "MetalKit"
    ],
    "preciseIdentifier" : "c:@MTKTextureLoaderOptionTextureCPUCacheMode"
  },
  "title" : "textureCPUCacheMode"
}
-->

# textureCPUCacheMode

A key used to specify the CPU cache mode for the texture.

```
static let textureCPUCacheMode: MTKTextureLoader.Option
```

## Discussion

The value for this key is an <doc://com.apple.documentation/documentation/Foundation/NSNumber> object containing a <doc://com.apple.documentation/documentation/Metal/MTLCPUCacheMode> value.

If this key is not specified, the default value is the value associated with <doc://com.apple.documentation/documentation/Metal/MTLCPUCacheMode/defaultCache>.

---

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)