//Each component of the color is multiplied by (0, 0, 0, 0).
Zero,
//Each component of the color is multiplied by (1, 1, 1, 1)
One,
//Each component of the color is multiplied by the source color. This can be represented as (Rs, Gs, Bs, As),
// where R, G, B, and A respectively stand for the red, green, blue, and alpha source values.
SourceColor,
//Each component of the color is multiplied by the inverse of the source color.
//This can be represented as (1 − Rs, 1 − Gs, 1 − Bs, 1 − As) where R, G, B, and A respectively stand for the red, green, blue, and alpha destination values.
InverseSourceColor,
//Each component of the color is multiplied by the alpha value of the source.
//This can be represented as (As, As, As, As), where As is the alpha source value.
SourceAlpha,
//Each component of the color is multiplied by the inverse of the alpha value of the source.
//This can be represented as (1 − As, 1 − As, 1 − As, 1 − As), where As is the alpha destination value.
InverseSourceAlpha,
//Each component of the color is multiplied by the alpha value of the destination.
//This can be represented as (Ad, Ad, Ad, Ad), where Ad is the destination alpha value.
DestinationAlpha,
//Each component of the color is multiplied by the inverse of the destination color.
//This can be represented as (1 − Rd, 1 − Gd, 1 − Bd, 1 − Ad), where Rd, Gd, Bd, and Ad respectively stand for the red, green, blue, and alpha destination values.
InverseDestinationAlpha,
//Each component color is multiplied by the destination color.
//This can be represented as (Rd, Gd, Bd, Ad), where R, G, B, and A respectively stand for red, green, blue, and alpha destination values.
DestinationColor,
//Each component of the color is multiplied by the inverse of the destination color.
// This can be represented as (1 − Rd, 1 − Gd, 1 − Bd, 1 − Ad), where Rd, Gd, Bd, and Ad respectively stand for the red, green, blue, and alpha destination values.
InverseDestinationColor,
//Each component of the color is multiplied by either the alpha of the source color, or the inverse of the alpha of the source color, whichever is greater.
// This can be represented as (f, f, f, 1), where f = min(A, 1 − Ad).
SourceAlphaSaturation,
//Each component of the color is multiplied by a constant set in BlendFactor.
BlendFactor,
//Each component of the color is multiplied by the inverse of a constant set in BlendFactor.
InverseBlendFactor,
Source1Color,
InverseSource1Color,
Source1Alpha,
InverseSource1Alpha
};
//Defines how to combine a source color with the destination color already on the render target for color blending.
enumclassBlendFunction{
//The result is the destination added to the source.
//Result = (Source Color * Source Blend) + (Destination Color * Destination Blend)
Add=0,
//The result is the destination subtracted from the source.
//Result = (Source Color * Source Blend) −(Destination Color * Destination Blend)
Subtract=1,
//The result is the source subtracted from the destination.
//Result = (Destination Color * Destination Blend) −(Source Color * Source Blend)
ReverseSubtract=2,
//The result is the minimum of the source and destination.
//Result = min((Source Color * Source Blend), (Destination Color * Destination Blend))
Min=3,
//The result is the maximum of the source and destination.
//Result = max((Source Color * Source Blend), (Destination Color * Destination Blend))
Max=4,
};
//Defines the color channels that can be chosen for a per-channel write to a render target color buffer.
//Gets or sets the arithmetic operation when blending alpha values. The default is BlendFunction.Add.
BlendFunctionAlphaBlendFunction()const;
//Gets or sets the arithmetic operation when blending alpha values. The default is BlendFunction.Add.
voidAlphaBlendFunction(BlendFunctionvalue);
//Gets or sets the blend factor for the destination alpha, which is the percentage of the destination alpha included in the blended result. The default is Blend.One.
BlendAlphaDestinationBlend()const;
//Gets or sets the blend factor for the destination alpha, which is the percentage of the destination alpha included in the blended result. The default is Blend.One.
voidAlphaDestinationBlend(Blendvalue);
//Gets or sets the alpha blend factor. The default is Blend.One.
BlendAlphaSourceBlend()const;
//Gets or sets the alpha blend factor. The default is Blend.One.
voidAlphaSourceBlend(Blendvalue);
//Gets or sets the arithmetic operation when blending color values. The default is BlendFunction.Add.
BlendFunctionColorBlendFunction()const;
//Gets or sets the arithmetic operation when blending color values. The default is BlendFunction.Add.
voidColorBlendFunction(BlendFunctionvalue);
//Gets or sets the blend factor for the destination color. The default is Blend.One.
BlendColorDestinationBlend()const;
//Gets or sets the blend factor for the destination color. The default is Blend.One.
voidColorDestinationBlend(Blendvalue);
//Gets or sets the blend factor for the source color. The default is Blend.One.
BlendColorSourceBlend()const;
//Gets or sets the blend factor for the source color. The default is Blend.One.
voidColorSourceBlend(Blendvalue);
//Gets or sets the four-component (RGBA) blend factor for alpha blending.
ColorBlendFactor()const;
//Gets or sets the four-component (RGBA) blend factor for alpha blending.
voidBlendFactor(Colorconst&value);
//Gets or sets a bitmask which defines which samples can be written during multisampling. The default is 0xffffffff.