MTLTextureType
The dimension of each image, including whether multiple images are arranged into an array or a cube.
Declaration
enum MTLTextureTypeOverview
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
MTLTextureType.type1DMTLTextureType.type1DArrayMTLTextureType.type2DMTLTextureType.type2DArrayMTLTextureType.type2DMultisampleMTLTextureType.typeCubeMTLTextureType.typeCubeArrayMTLTextureType.type3DMTLTextureType.type2DMultisampleArrayMTLTextureType.typeTextureBuffer