Export (0) Print
Expand All

D3D10_RENDER_TARGET_BLEND_DESC1 structure

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.

StateDefault Value
BlendEnableFALSE
SrcBlendD3D10_BLEND_ONE
DestBlendD3D10_BLEND_ZERO
BlendOpD3D10_BLEND_OP_ADD
SrcBlendAlphaD3D10_BLEND_ONE
DestBlendAlphaD3D10_BLEND_ZERO
BlendOpAlphaD3D10_BLEND_OP_ADD
RenderTargetWriteMaskD3D10_COLOR_WRITE_ENABLE_ALL

 

Requirements

Header

D3D10.h

See also

Core Structures

 

 

Community Additions

ADD
Show:
© 2014 Microsoft