Contents

MTLBlendFactor

The source and destination blend factors are often needed to complete specification of a blend operation. In most cases, the blend factor for both RGB values (F(rgb)) and alpha values (F(a)) are similar to one another, but in some cases, such as MTLBlendFactorSourceAlphaSaturated, the blend factor is slightly different. Four blend factors (MTLBlendFactorBlendColor, MTLBlendFactorOneMinusBlendColor, MTLBlendFactorBlendAlpha, and MTLBlendFactorOneMinusBlendAlpha) refer to a constant blend color value that is set by the Setblendcolor(red:green:blue:alpha:) method of MTLRenderCommandEncoder.

Declaration

enum MTLBlendFactor

Topics

Blend factors

Enumeration Cases

Initializers

See Also

Configuring blend factors