<!--
{
  "availability" : [
    "iOS: 9.0.0 -",
    "iPadOS: 9.0.0 -",
    "macCatalyst: 13.0.0 -",
    "macOS: 10.11.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "MetalKit",
  "identifier" : "/documentation/MetalKit/MTKTextureLoader/CubeLayout",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "MetalKit"
    ],
    "preciseIdentifier" : "c:@T@MTKTextureLoaderCubeLayout"
  },
  "title" : "MTKTextureLoader.CubeLayout"
}
-->

# MTKTextureLoader.CubeLayout

Options for specifying how cube texture data is arranged in the source image.

```
struct CubeLayout
```

## Topics

### Creating Cube Texture Layout Options

[`init(rawValue:)`](/documentation/MetalKit/MTKTextureLoader/CubeLayout/init(rawValue:))

Creates a cube layout option from a raw string value.

### Specifying Cube Texture Layout Options

[`vertical`](/documentation/MetalKit/MTKTextureLoader/CubeLayout/vertical)

Specifies that the source 2D image is a vertical arrangement of six cube faces.



---

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)