D3D11_1_DDI_RENDER_TARGET_BLEND_DESC structure

Describes a blend state for a render target. Used by Windows Display Driver Model (WDDM) 1.2 and later user-mode display drivers.

Syntax

typedef struct D3D11_1_DDI_RENDER_TARGET_BLEND_DESC {
  BOOL                 BlendEnable;
  BOOL                 LogicOpEnable;
  D3D10_DDI_BLEND      SrcBlend;
  D3D10_DDI_BLEND      DestBlend;
  D3D10_DDI_BLEND_OP   BlendOp;
  D3D10_DDI_BLEND      SrcBlendAlpha;
  D3D10_DDI_BLEND      DestBlendAlpha;
  D3D10_DDI_BLEND_OP   BlendOpAlpha;
  D3D11_1_DDI_LOGIC_OP LogicOp;
  UINT8                RenderTargetWriteMask;
} D3D11_1_DDI_RENDER_TARGET_BLEND_DESC;

Members

BlendEnable

[in] A Boolean value that specifies whether blending is enabled for the associated render target. TRUE indicates blending is enabled; FALSE indicates blending is disabled.

Note  The LogicOpEnable and BlendEnable members must not both be TRUE.
 

LogicOpEnable

Specifies whether shader logic operations given by the LogicOp member are available in the blend state. The user-mode display driver sets LogicOpEnable to TRUE if logic operations are available in the blend state and FALSE otherwise.

This member is FALSE if the driver supports Direct3D feature level 9.1, 9.2, and 9.3. This member is optional if the driver supports feature level 10, 10.1, and 11.

This member is TRUE if the driver supports feature level 11.1 and later.

Note  The LogicOpEnable and BlendEnable members must not both be TRUE.
 

SrcBlend

[in] A value of type D3D10_DDI_BLEND that indicates the blend mode of the source for the enabled render target.

DestBlend

[in] A value of type D3D10_DDI_BLEND that indicates the blend mode of the destination for the enabled render target.

BlendOp

[in] A value of type D3D10_DDI_BLEND_OP that indicates the blending operation for the enabled render target.

SrcBlendAlpha

[in] A value of type D3D10_DDI_BLEND that indicates the transparency blend mode of the source for the enabled render target.

DestBlendAlpha

[in] A value of type D3D10_DDI_BLEND that indicates the transparency blend mode of the destination for the enabled render target.

BlendOpAlpha

[in] A value of type D3D10_DDI_BLEND_OP that indicates the transparency blending operation for the enabled render target.

LogicOp

[in] A value of type D3D11_1_DDI_LOGIC_OP that specifies shader logic operations that are available in the blend state.

RenderTargetWriteMask

[in] An 8-bit bitwise value that indicates the write properties for the enabled render target. Each bit must be set to one of the following values from the D3D10_DDI_COLOR_WRITE_ENABLE enumeration.

Value Meaning
D3D10_DDI_COLOR_WRITE_ENABLE_RED (1) Writes red
D3D10_DDI_COLOR_WRITE_ENABLE_GREEN (2) Writes green
D3D10_DDI_COLOR_WRITE_ENABLE_BLUE (4) Writes blue
D3D10_DDI_COLOR_WRITE_ENABLE_ALPHA (8) Writes a transparency level
D3D10_DDI_COLOR_WRITE_ENABLE_ALL (1 2 4 8) Writes red, green, blue, and a transparency level

Requirements

   
Minimum supported client Windows 8
Minimum supported server Windows Server 2012
Header d3d10umddi.h (include D3d10umddi.h)

See Also

CalcPrivateBlendStateSize(D3D11_1)

CreateBlendState(D3D11_1)

D3D10_DDI_BLEND

D3D10_DDI_BLEND_OP

D3D11_1_DDI_BLEND_DESC

D3D11_1_DDI_LOGIC_OP