---
title: cubeLayout
framework: metalkit
role: symbol
role_heading: Type Property
path: metalkit/mtktextureloader/option/cubelayout
---

# cubeLayout

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

## Declaration

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

## Discussion

Discussion The value for this key is one of the values listed for 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 MDLTexture objects, which support cube textures directly.

## See Also

### Specifying Cube Layout

- [MTKTextureLoader.CubeLayout](metalkit/mtktextureloader/cubelayout.md)
