An object that you use to configure new Metal texture objects.
SDKs
- iOS 8.0+
- macOS 10.11+
- Mac Catalyst 13.0+
- tvOS 9.0+
Framework
- Metal
Declaration
class MTLTextureDescriptor : NSObject
Overview
To create a new texture, first create a MTLTexture
object and set its property values. Then, call either the make
or make
method of a MTLDevice
object, or the make
method of a MTLBuffer
object.
When you create a texture, Metal copies property values from the descriptor into the new texture. You can reuse a MTLTexture
object, modifying its property values as needed, to create more MTLTexture
objects, without affecting any textures you already created.