Enumeration

MTLBlendOperation

For every pixel, MTLBlendOperation determines how to combine and weight the source fragment values with the destination values. Some blend operations multiply the source values by a source blend factor (SBF), multiply the destination values by a destination blend factor (DBF), and then combine the results using addition or subtraction. Other blend operations use either a minimum or maximum function to determine the result.

Declaration

enum MTLBlendOperation : UInt

Topics

Constants

case add

Add portions of both source and destination pixel values.

case subtract

Subtract a portion of the destination pixel values from a portion of the source.

case reverseSubtract

Subtract a portion of the source values from a portion of the destination pixel values.

case min

Minimum of the source and destination pixel values.

case max

Maximum of the source and destination pixel values.

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