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

# textureStorageMode

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

```
static let textureStorageMode: 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/MTLStorageMode> value.

If this option is omitted, the texture is created with the default storage mode for Metal textures: <doc://com.apple.documentation/documentation/Metal/MTLStorageMode/shared> on iOS and tvOS, and <doc://com.apple.documentation/documentation/Metal/MTLStorageMode/managed> in macOS. Specifying the <doc://com.apple.documentation/documentation/Metal/MTLStorageMode/private> option causes the [`MTKTextureLoader`](/documentation/MetalKit/MTKTextureLoader) object to submit work to the GPU on your behalf.

---

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)