D3D10_RENDER_TARGET_BLEND_DESC1 structure (d3d10_1.h)

Describes the blend state for a render target for a Direct3D 10.1 device

Syntax

typedef struct D3D10_RENDER_TARGET_BLEND_DESC1 {
  BOOL           BlendEnable;
  D3D10_BLEND    SrcBlend;
  D3D10_BLEND    DestBlend;
  D3D10_BLEND_OP BlendOp;
  D3D10_BLEND    SrcBlendAlpha;
  D3D10_BLEND    DestBlendAlpha;
  D3D10_BLEND_OP BlendOpAlpha;
  UINT8          RenderTargetWriteMask;
} D3D10_RENDER_TARGET_BLEND_DESC1;

Members

BlendEnable

Type: BOOL

Enable (or disable) blending.

SrcBlend

Type: D3D10_BLEND

This blend option specifies the first RGB data source and includes an optional pre-blend operation.

DestBlend

Type: D3D10_BLEND

This blend option specifies the second RGB data source and includes an optional pre-blend operation.

BlendOp

Type: D3D10_BLEND_OP

This blend operation defines how to combine the RGB data sources.

SrcBlendAlpha

Type: D3D10_BLEND

This blend option specifies the first alpha data source and includes an optional pre-blend operation. Blend options that end in _COLOR are not allowed.

DestBlendAlpha

Type: D3D10_BLEND

This blend option specifies the second alpha data source and includes an optional pre-blend operation. Blend options that end in _COLOR are not allowed.

BlendOpAlpha

Type: D3D10_BLEND_OP

This blend operation defines how to combine the alpha data sources.

RenderTargetWriteMask

Type: UINT8

A write mask.

Remarks

To see how blending is done, see Output-Merger Stage (Direct3D 10).

These are the default values for blend state.

State Default Value
BlendEnable FALSE
SrcBlend D3D10_BLEND_ONE
DestBlend D3D10_BLEND_ZERO
BlendOp D3D10_BLEND_OP_ADD
SrcBlendAlpha D3D10_BLEND_ONE
DestBlendAlpha D3D10_BLEND_ZERO
BlendOpAlpha D3D10_BLEND_OP_ADD
RenderTargetWriteMask D3D10_COLOR_WRITE_ENABLE_ALL

Requirements

Requirement Value
Header d3d10_1.h (include D3D10.h)

See also

Core Structures