Instance Property


A Boolean value that determines whether blending is enabled.


var isBlendingEnabled: Bool { get set }


The default value is false, meaning blending is disabled and pixel values are unaffected by blending. Disabled blending is effectively the same as the MTLBlendOperationAdd blend operation with a source blend factor of 1.0 and a destination blend factor of 0.0 for both RGB and alpha.

If the value is true, blending is enabled and the blend descriptor property values are used to determine how source and destination color values are combined.

See Also

Controlling the Blend Operation

var alphaBlendOperation: MTLBlendOperation

The blend operation assigned for the alpha data.

var rgbBlendOperation: MTLBlendOperation

The blend operation assigned for the RGB data.

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