Instance Property

sourceAlpha

Premultiplication description for the source texture.

Declaration

var sourceAlpha: MPSAlphaType { get }

Discussion

Most color space conversion operations can not work directly on premultiplied data. Use this property to tag premultiplied data so that the source texture can be un-premultiplied prior to the application of these transforms. The default value is MPSAlphaType.alphaIsOne.

See Also

Properties

var destinationAlpha: MPSAlphaType

Premultiplication description for the destination texture.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software