---
title: textureStorageMode
framework: metalkit
role: symbol
role_heading: Type Property
path: metalkit/mtktextureloader/option/texturestoragemode
---

# textureStorageMode

A key used to specify the storage mode for the texture.

## Declaration

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

## Discussion

Discussion The value for this key is an NSNumber object containing a MTLStorageMode value. If this option is omitted, the texture is created with the default storage mode for Metal textures: MTLStorageMode.shared on iOS and tvOS, and MTLStorageMode.managed in macOS. Specifying the MTLStorageMode.private option causes the MTKTextureLoader object to submit work to the GPU on your behalf.

## See Also

### Specifying Resource Options

- [textureCPUCacheMode](metalkit/mtktextureloader/option/texturecpucachemode.md)
- [textureUsage](metalkit/mtktextureloader/option/textureusage.md)
