Contents

init(channelFormat:width:height:featureChannels:numberOfImages:usage:)

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

Declaration

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

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.

  • numberOfImages:

    The number of images for batch processing.

  • usage:

    The intended usage of the underlying texture.

Return Value

A valid MPSImageDescriptor object.

See Also

Methods