The underlying texture.
- iOS 10.0+
- macOS 10.13+
- Mac Catalyst 13.0+
- tvOS 10.0+
- Metal Performance Shaders
This is a 2D texture if
feature. It is a 2D texture array otherwise.
To avoid the high cost of premature allocation of the underlying texture, avoid accessing this property except when strictly necessary. Calls to the
encode methods of an MPSCNNKernel object typically cause their arguments to become allocated. Likewise,
MPSImage objects initialized with the
init(texture: method have already been allocated.