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.
| State | Default Value |
|---|---|
| AlphaToCoverageEnable | FALSE |
| BlendEnable[8] | FALSE (for all 8) |
| 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[8] | D3D10_COLOR_WRITE_ENABLE_ALL (for all 8) |
Requirements
|
Header |
|
|---|
See also