Export (0) Print
Expand All

D3D10_BLEND_DESC structure

Describes the blend state.

Syntax


typedef struct D3D10_BLEND_DESC {
  BOOL           AlphaToCoverageEnable;
  BOOL           BlendEnable[8];
  D3D10_BLEND    SrcBlend;
  D3D10_BLEND    DestBlend;
  D3D10_BLEND_OP BlendOp;
  D3D10_BLEND    SrcBlendAlpha;
  D3D10_BLEND    DestBlendAlpha;
  D3D10_BLEND_OP BlendOpAlpha;
  UINT8          RenderTargetWriteMask[8];
} D3D10_BLEND_DESC;

Members

AlphaToCoverageEnable

Type: BOOL

Determines whether or not to use alpha-to-coverage as a multisampling technique when setting a pixel to a rendertarget.

BlendEnable

Type: BOOL

Enable (or disable) blending. There are eight elements in this array; these correspond to the eight rendertargets that can be set to output-merger stage at one time.

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 per-pixel write mask that allows control over which components can be written (see D3D10_COLOR_WRITE_ENABLE).

Remarks

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

These are the default values for blend state.

StateDefault Value
AlphaToCoverageEnableFALSE
BlendEnable[8]FALSE (for all 8)
SrcBlendD3D10_BLEND_ONE
DestBlendD3D10_BLEND_ZERO
BlendOpD3D10_BLEND_OP_ADD
SrcBlendAlphaD3D10_BLEND_ONE
DestBlendAlphaD3D10_BLEND_ZERO
BlendOpAlphaD3D10_BLEND_OP_ADD
RenderTargetWriteMask[8]D3D10_COLOR_WRITE_ENABLE_ALL (for all 8)

 

Requirements

Header

D3D10.h

See also

Core Structures

 

 

Community Additions

ADD
Show:
© 2014 Microsoft