Keys and values used to specify loading options.
SDKs
- iOS 11.0+
- macOS 10.13+
- Mac Catalyst 13.0+
- tvOS 11.0+
Framework
- Metal
Kit
Declaration
struct Option
Keys and values used to specify loading options.
SDKs
Framework
struct Option
init(raw Value: String)
Creates a texture loader option from a raw string value.
static let allocate Mipmaps: MTKTexture Loader .Option
A key used to specify whether the texture loader should allocate memory for mipmaps in the texture.
static let generate Mipmaps: MTKTexture Loader .Option
A key used to specify whether the texture loader should generate mipmaps for the texture.
static let texture CPUCache Mode: MTKTexture Loader .Option
A key used to specify the CPU cache mode for the texture.
static let texture Storage Mode: MTKTexture Loader .Option
A key used to specify the storage mode for the texture.
static let texture Usage: MTKTexture Loader .Option
A key used to specify the intended usage of the texture.
static let origin: MTKTexture Loader .Option
A key used to specify when to flip the pixel coordinates of the texture.
struct MTKTexture Loader .Origin
Options for specifying when to flip the pixel coordinates of the texture.
static let cube Layout: MTKTexture Loader .Option
A key used to specify how cube texture data is arranged in the source image.
struct MTKTexture Loader .Cube Layout
Options for specifying how cube texture data is arranged in the source image.
static let SRGB: MTKTexture Loader .Option
A key used to specify whether the texture data is stored as sRGB image data.