<!--
{
  "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/cubeLayout",
  "metadataVersion" : "0.1.0",
  "role" : "Type Property",
  "symbol" : {
    "kind" : "Type Property",
    "modules" : [
      "MetalKit"
    ],
    "preciseIdentifier" : "c:@MTKTextureLoaderOptionCubeLayout"
  },
  "title" : "cubeLayout"
}
-->

# cubeLayout

A key used to specify how cube texture data is arranged in the source image.

```
static let cubeLayout: MTKTextureLoader.Option
```

## Discussion

The value for this key is one of the values listed for [`MTKTextureLoader.CubeLayout`](/documentation/MetalKit/MTKTextureLoader/CubeLayout). If this option is omitted, the texture loader does not create a cube texture.

This option cannot be used with PVR files, KTX files, or <doc://com.apple.documentation/documentation/ModelIO/MDLTexture> objects, which support cube textures directly.

---

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)