Contents

MTLTextureType

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

Declaration

enum MTLTextureType

Overview

For a MTLTextureTypeCube texture, the property values describe one slice, which is any one of its six sides. For example, mipmapLevelCount is the number of mipmap levels for one slice, not the total sum of mipmap levels in six slices. By definition, the width and height of a cube texture are the same value.

Each slice of a cube texture maps to a side with a specific orientation.

Slice index

Slice orientation

0

+X

1

-X

2

+Y

3

-Y

4

+Z

5

-Z

Topics

Specifying the texture type

Initializers

See Also

Querying texture attributes