Enum BlendFunction
Defines a function for color blending.
[DataContract]
public enum BlendFunction
- Extension Methods
Fields
Add = 1The function adds destination to the source:
(srcColor * srcBlend) + (destColor * destBlend)Max = 5The function finds the maximum of the source and destination:
max( (srcColor * srcBlend), (destColor * destBlend) )Min = 4The function finds the minimum of the source and destination:
min( (srcColor * srcBlend), (destColor * destBlend) )ReverseSubtract = 3The function subtracts source from destination:
(destColor * destBlend) - (srcColor * srcBlend)Subtract = 2The function subtracts destination from source:
(srcColor * srcBlend) − (destColor * destBlend)
Remarks
The runtime implements color (RGB) blending and alpha blending separately. Therefore, a Blend State requires separate blend operations for RGB data and alpha data. These blend operations are specified in a BlendStateDescription and in a BlendStateRenderTargetDescription.