Structure

MTKTextureLoader.Origin

Options for specifying when to flip the pixel coordinates of the texture.

Declaration

struct Origin

Topics

Creating Texture Origin Options

init(rawValue: String)

Creates a texture origin option from a raw string value.

Specifying Texture Origin Options

static let topLeft: MTKTextureLoader.Origin

An option for specifying images that should be flipped only to put their origin in the top-left corner.

static let bottomLeft: MTKTextureLoader.Origin

An option for specifying images that should be flipped only to put their origin in the bottom-left corner.

static let flippedVertically: MTKTextureLoader.Origin

An option that specifies that images should always be flipped.

Relationships

See Also

Specifying Origin Information

static let origin: MTKTextureLoader.Option

A key used to specify when to flip the pixel coordinates of the texture.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software