---
title: MTKTextureLoader.Option
framework: metalkit
role: symbol
role_heading: Structure
path: metalkit/mtktextureloader/option
---

# MTKTextureLoader.Option

Keys and values used to specify loading options.

## Declaration

```swift
struct Option
```

## Topics

### Creating Texture Loading Options

- [init(rawValue:)](metalkit/mtktextureloader/option/init(rawvalue:).md)

### Specifying Mipmap Options

- [allocateMipmaps](metalkit/mtktextureloader/option/allocatemipmaps.md)
- [generateMipmaps](metalkit/mtktextureloader/option/generatemipmaps.md)

### Specifying Resource Options

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

### Specifying Origin Information

- [origin](metalkit/mtktextureloader/option/origin.md)
- [MTKTextureLoader.Origin](metalkit/mtktextureloader/origin.md)

### Specifying Cube Layout

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

### Specifying sRGB Options

- [SRGB](metalkit/mtktextureloader/option/srgb.md)

### Type Properties

- [loadAsArray](metalkit/mtktextureloader/option/loadasarray.md)

## Relationships

### Conforms To

- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [RawRepresentable](swift/rawrepresentable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)
