Instance Property


Options to specify the intended usage of the underlying texture.


var usage: MTLTextureUsage { get set }


The default value is shaderRead|shaderWrite.

See Also


var width: Int

The width of the image.

var height: Int

The height of the image.

var featureChannels: Int

The number of feature channels per pixel.

var numberOfImages: Int

The number of images for batch processing.

var pixelFormat: MTLPixelFormat

The pixel format for the underlying texture.

var channelFormat: MPSImageFeatureChannelFormat

The storage format to use for each channel in the image.

var cpuCacheMode: MTLCPUCacheMode

The CPU cache mode of the underlying texture.

var storageMode: MTLStorageMode

The storage mode of underlying texture.