D3D11_1_DDI_RENDER_TARGET_BLEND_DESC structure (d3d10umddi.h)

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 {
  [in] BOOL                 BlendEnable;
       BOOL                 LogicOpEnable;
  [in] D3D10_DDI_BLEND      SrcBlend;
  [in] D3D10_DDI_BLEND      DestBlend;
  [in] D3D10_DDI_BLEND_OP   BlendOp;
  [in] D3D10_DDI_BLEND      SrcBlendAlpha;
  [in] D3D10_DDI_BLEND      DestBlendAlpha;
  [in] D3D10_DDI_BLEND_OP   BlendOpAlpha;
  [in] D3D11_1_DDI_LOGIC_OP LogicOp;
  [in] UINT8                RenderTargetWriteMask;
} D3D11_1_DDI_RENDER_TARGET_BLEND_DESC;

Members

[in] BlendEnable

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.

[in] SrcBlend

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

[in] DestBlend

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

[in] BlendOp

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

[in] SrcBlendAlpha

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

[in] DestBlendAlpha

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

[in] BlendOpAlpha

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

[in] LogicOp

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

[in] RenderTargetWriteMask

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 (bitwise OR of 1,2,4,8) Writes red, green, blue, and a transparency level

Requirements

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

See also

CalcPrivateBlendStateSize

CreateBlendState(D3D11_1)

D3D10_DDI_BLEND

D3D10_DDI_BLEND_OP

D3D11_1_DDI_BLEND_DESC

D3D11_1_DDI_LOGIC_OP