Initializer

init(channelFormat:width:height:featureChannels:)

Creates an image descriptor for a single image.

Declaration

convenience init(channelFormat: MPSImageFeatureChannelFormat, width: Int, height: Int, featureChannels: Int)

Parameters

channelFormat

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

width

The width of the image.

height

The height of the image.

featureChannels

The number of feature channels per pixel.

Return Value

A valid MPSImageDescriptor object.

See Also

Methods

init(channelFormat: MPSImageFeatureChannelFormat, width: Int, height: Int, featureChannels: Int, numberOfImages: Int, usage: MTLTextureUsage)

Creates an image descriptor for an image container with options to set texture usage and batch size (number of images).