---
title: textureCPUCacheMode
framework: metalkit
role: symbol
role_heading: Type Property
path: metalkit/mtktextureloader/option/texturecpucachemode
---

# textureCPUCacheMode

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

## Declaration

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

## Discussion

Discussion The value for this key is an NSNumber object containing a MTLCPUCacheMode value. If this key is not specified, the default value is the value associated with MTLCPUCacheMode.defaultCache.

## See Also

### Specifying Resource Options

- [textureStorageMode](metalkit/mtktextureloader/option/texturestoragemode.md)
- [textureUsage](metalkit/mtktextureloader/option/textureusage.md)
