The behavior of a new memory allocation.
- iOS 8.0+
- macOS 10.11+
- Mac Catalyst 13.0+
- tvOS 9.0+
This property only has an effect when you are allocating a new texture. If you are creating a texture whose data comes from another
MTLResource object, this property value is ignored, and the value of the original resource is used instead.
The value of this property aggregates the values of
hazardTrackingMode. If you modify this property, the other properties also change, and vice versa.
Specifying Texture Attributes
var width: Int
The width of the texture image for the base level mipmap, in pixels.
var height: Int
The height of the texture image for the base level mipmap, in pixels.
var depth: Int
The depth of the texture image for the base level mipmap, in pixels.