Class MTLTexture Descriptor
An object that you use to configure new Metal texture objects.
iOS 8.0+ macOS 10.11+ Mac Catalyst 13.0+ tvOS 9.0+ Declaration @interface MTLTextureDescriptor :
NSObject Topics Creating Texture Descriptors Specifying Texture Attributes texture Type
The dimension and arrangement of texture image data.
The size and bit layout of all pixels in the texture.
The width of the texture image for the base level mipmap, in pixels.
The height of the texture image for the base level mipmap, in pixels.
The depth of the texture image for the base level mipmap, in pixels.
The number of array elements for this texture.
cpu Cache Mode
The CPU cache mode used for the CPU mapping of the texture.
The location and access permissions of the texture.
allow GPUOptimized Contents
A Boolean value indicating whether the GPU is allowed to adjust the texture's contents to improve GPU performance.
Options that determine how you can use the texture.
The pattern you want the GPU to apply to pixels when you read or sample pixels from the texture.
MTLTexture Swizzle Channels
A pattern that modifies the data read or sampled from a texture by rearranging or duplicating the elements of a vector.
A set of options to choose from when creating a texture swizzle pattern.
The dimension of each image, including whether multiple images are arranged into an array or a cube.
An enumeration for the various options that determine how you can use a texture.
See Also Working with Textures MTLTexture
A resource that holds formatted image data.
An object that decodes common image formats into Metal textures for use in your app.
The data formats that describe the organization and characteristics of individual pixels in a texture.