Type Property

origin

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

Declaration

static let origin: MTKTextureLoader.Option

Discussion

The value for this key is one of the values listed for MTKTextureLoader.Origin. If you omit this option, the texture loader doesn’t flip loaded textures.

This option cannot be used with block-compressed texture formats, and can be used only with 2D, 2D array, and cube map textures. Each mipmap level and slice of a texture are flipped.

See Also

Specifying Origin Information

struct MTKTextureLoader.Origin

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