MTLTextureType

The dimension of each image, including whether multiple images are arranged into an array or a cube.

Values

ValueMeaning
_1D0

A one-dimensional texture image.

_1DArray1

An array of one-dimensional texture images.

_2D2

A two-dimensional texture image.

_2DArray3

An array of two-dimensional texture images.

_2DMultisample4

A two-dimensional texture image that uses more than one sample for each pixel.

Cube5

A cube texture with six two-dimensional images.

CubeArray6
_3D7

A three-dimensional texture image.

_2DMultisampleArray8

An array of two-dimensional texture images that use more than one sample for each pixel.

TextureBuffer9

A texture buffer.

Meta