Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

D3D10_BLEND_DESC1 structure

Describes the blend state for a Direct3D 10.1 device.

Syntax


typedef struct D3D10_BLEND_DESC1 {
  BOOL                            AlphaToCoverageEnable;
  BOOL                            IndependentBlendEnable;
  D3D10_RENDER_TARGET_BLEND_DESC1 RenderTarget[8];
} D3D10_BLEND_DESC1;

Members

AlphaToCoverageEnable

Type: BOOL

Determines whether or not to use the alpha-to-coverage multisampling technique when setting a render-target pixel.

IndependentBlendEnable

Type: BOOL

Set to TRUE to enable independent blending in simultaneous render targets. If set to FALSE, only the RenderTarget[0] members are used. RenderTarget[1..7] are ignored.

RenderTarget

Type: D3D10_RENDER_TARGET_BLEND_DESC1

An array of render-target-blend descriptions (see D3D10_RENDER_TARGET_BLEND_DESC1); these correspond to the eight rendertargets that can be set to the output-merger stage at one time.

Remarks

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

These are the default values for the blend description.

StateDefault Value
AlphaToCoverageEnableFALSE
IndependentBlendEnableFALSE
RenderTarget[0].BlendEnableFALSE
RenderTarget[0].SrcBlendD3D10_BLEND_ONE
RenderTarget[0].DestBlendD3D10_BLEND_ZERO
RenderTarget[0].BlendOpD3D10_BLEND_OP_ADD
RenderTarget[0].SrcBlendAlphaD3D10_BLEND_ONE
RenderTarget[0].DestBlendAlphaD3D10_BLEND_ZERO
RenderTarget[0].BlendOpAlphaD3D10_BLEND_OP_ADD
RenderTarget[0].RenderTargetWriteMaskD3D10_COLOR_WRITE_ENABLE_ALL

 

This structure requires Windows Vista Service Pack 1.

If the driver type is set to D3D_DRIVER_TYPE_HARDWARE, the feature level is set to less than or equal to D3D_FEATURE_LEVEL_9_3, and the pixel format of the render target is set to DXGI_FORMAT_R8G8B8A8_UNORM_SRGB, DXGI_FORMAT_B8G8R8A8_UNORM_SRGB, or DXGI_FORMAT_B8G8R8X8_UNORM_SRGB, the device performs the blend in standard RGB (sRGB) space and not in linear space. However, if the feature level is set to greater than D3D_FEATURE_LEVEL_9_3, the device performs the blend in linear space.

Requirements

Header

D3D10_1.h

See also

Core Structures

 

 

Show:
© 2017 Microsoft