CD3D11_BLEND_DESC1 Structure

Represents a blend-state structure and provides convenience methods for creating blend-state structures.

Similar to CD3D11_BLEND_DESC.

Syntax

struct CD3D11_BLEND_DESC1 : public D3D11_BLEND_DESC1  

Remarks

Here is how D3D11_1.h defines CD3D11_BLEND_DESC1:

struct CD3D11_BLEND_DESC1 : public D3D11_BLEND_DESC1
{
    CD3D11_BLEND_DESC1()
    {}
    explicit CD3D11_BLEND_DESC1( const D3D11_BLEND_DESC1& o ) :
        D3D11_BLEND_DESC1( o )
    {}
    explicit CD3D11_BLEND_DESC1( CD3D11_DEFAULT )
    {
        AlphaToCoverageEnable = FALSE;
        IndependentBlendEnable = FALSE;
        const D3D11_RENDER_TARGET_BLEND_DESC1 defaultRenderTargetBlendDesc =
        {
            FALSE,FALSE,
            D3D11_BLEND_ONE, D3D11_BLEND_ZERO, D3D11_BLEND_OP_ADD,
            D3D11_BLEND_ONE, D3D11_BLEND_ZERO, D3D11_BLEND_OP_ADD,
            D3D11_LOGIC_OP_NOOP,
            D3D11_COLOR_WRITE_ENABLE_ALL,
        };
        for (UINT i = 0; i < D3D11_SIMULTANEOUS_RENDER_TARGET_COUNT; ++i)
            RenderTarget[ i ] = defaultRenderTargetBlendDesc;
    }
    ~CD3D11_BLEND_DESC1() {}
    operator const D3D11_BLEND_DESC1&() const { return *this; }
};  

Requirements

Header: Declared in d3d11_x.h (d3d11_1.h on other Windows platforms).

Library: Use d3d11_x.lib (d3d11.lib on other Windows platforms).