D3D11_BLEND Enumeration

Blend factors, which modulate values for the pixel shader and render target.

Syntax

typedef enum D3D11_BLEND {
  D3D11_BLEND_ZERO,
  D3D11_BLEND_ONE,
  D3D11_BLEND_SRC_COLOR,
  D3D11_BLEND_INV_SRC_COLOR,
  D3D11_BLEND_SRC_ALPHA,
  D3D11_BLEND_INV_SRC_ALPHA,
  D3D11_BLEND_DEST_ALPHA,
  D3D11_BLEND_INV_DEST_ALPHA,
  D3D11_BLEND_DEST_COLOR,
  D3D11_BLEND_INV_DEST_COLOR,
  D3D11_BLEND_SRC_ALPHA_SAT,
  D3D11_BLEND_BLEND_FACTOR,
  D3D11_BLEND_INV_BLEND_FACTOR,
  D3D11_BLEND_SRC1_COLOR,
  D3D11_BLEND_INV_SRC1_COLOR,
  D3D11_BLEND_SRC1_ALPHA,
  D3D11_BLEND_INV_SRC1_ALPHA
} ;

Constants

D3D11_BLEND_ZERO The blend factor is (0, 0, 0, 0). No pre-blend operation.
D3D11_BLEND_ONE The blend factor is (1, 1, 1, 1). No pre-blend operation.
D3D11_BLEND_SRC_COLOR The blend factor is (Rₛ, Gₛ, Bₛ, Aₛ), that is color data (RGB) from a pixel shader. No pre-blend operation.
D3D11_BLEND_INV_SRC_COLOR The blend factor is (1 - Rₛ, 1 - Gₛ, 1 - Bₛ, 1 - Aₛ), that is color data (RGB) from a pixel shader. The pre-blend operation inverts the data, generating 1 - RGB.
D3D11_BLEND_SRC_ALPHA The blend factor is (Aₛ, Aₛ, Aₛ, Aₛ), that is alpha data (A) from a pixel shader. No pre-blend operation.
D3D11_BLEND_INV_SRC_ALPHA The blend factor is ( 1 - Aₛ, 1 - Aₛ, 1 - Aₛ, 1 - Aₛ), that is alpha data (A) from a pixel shader. The pre-blend operation inverts the data, generating 1 - A.
D3D11_BLEND_DEST_ALPHA The blend factor is (Ad Ad Ad Ad), that is alpha data from a render target. No pre-blend operation.
D3D11_BLEND_INV_DEST_ALPHA The blend factor is (1 - Ad 1 - Ad 1 - Ad 1 - Ad), that is alpha data from a render target. The pre-blend operation inverts the data, generating 1 - A.
D3D11_BLEND_DEST_COLOR The blend factor is (Rd, Gd, Bd, Ad), that is color data from a render target. No pre-blend operation.
D3D11_BLEND_INV_DEST_COLOR The blend factor is (1 - Rd, 1 - Gd, 1 - Bd, 1 - Ad), that is color data from a render target. The pre-blend operation inverts the data, generating 1 - RGB.
D3D11_BLEND_SRC_ALPHA_SAT The blend factor is (f, f, f, 1); where f = min(Aₛ, 1 - Ad). The pre-blend operation clamps the data to 1 or less.
D3D11_BLEND_BLEND_FACTOR The blend factor is the blend factor set with ID3D11DeviceContext::OMSetBlendState. No pre-blend operation.
D3D11_BLEND_INV_BLEND_FACTOR The blend factor is the blend factor set with ID3D11DeviceContext::OMSetBlendState. The pre-blend operation inverts the blend factor, generating 1 - blend_factor.
D3D11_BLEND_SRC1_COLOR The blend factor is data sources both as color data output by a pixel shader. There is no pre-blend operation. This blend factor supports dual-source color blending.
D3D11_BLEND_INV_SRC1_COLOR The blend factor is data sources both as color data output by a pixel shader. The pre-blend operation inverts the data, generating 1 - RGB. This blend factor supports dual-source color blending.
D3D11_BLEND_SRC1_ALPHA The blend factor is data sources as alpha data output by a pixel shader. There is no pre-blend operation. This blend factor supports dual-source color blending.
D3D11_BLEND_INV_SRC1_ALPHA The blend factor is data sources as alpha data output by a pixel shader. The pre-blend operation inverts the data, generating 1 - A. This blend factor supports dual-source color blending.

Remarks

Blend operations are specified in a blend description.

Requirements

   
Header d3d11.h

See Also

Core Enumerations