Encodes the representation of a single channel within an image.
SDKs
- iOS 10.0+
- macOS 10.13+
- Mac Catalyst 13.0+
- tvOS 10.0+
Framework
- Metal Performance Shaders
Declaration
enum MPSImageFeatureChannelFormat : UInt
Overview
A pixel in an MPSImage
object may have many channels in it, sometimes many more than 4, that exceed the limit of what a MTLPixel
value can encode. The storage format for a single channel within a pixel can be given by the MPSImage
type. The number of channels is defined by the feature
property of an MPSImage
object. The size of the pixel is the size of the channel format multiplied by the number of feature channels. No padding is allowed, except to round out to a full byte.