Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

CD3D11_BLEND_DESC structure (d3d11.h)

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

Syntax

struct CD3D11_BLEND_DESC : D3D11_BLEND_DESC {
 void CD3D11_BLEND_DESC();
 void CD3D11_BLEND_DESC(
 const D3D11_BLEND_DESC & o
 );
 void CD3D11_BLEND_DESC(
 CD3D11_DEFAULT unnamedParam1
 );
 void ~CD3D11_BLEND_DESC();
};

Inheritance

The CD3D11_BLEND_DESC structure implements D3D11_BLEND_DESC.

Members

void CD3D11_BLEND_DESC()

Instantiates a new instance of an uninitialized CD3D11_BLEND_DESC structure.

void CD3D11_BLEND_DESC( const D3D11_BLEND_DESC & o)

Instantiates a new instance of a CD3D11_BLEND_DESC structure that is initialized with a CD3D11_BLEND_DESC structure.

void CD3D11_BLEND_DESC( CD3D11_DEFAULT unnamedParam1)

Instantiates a new instance of a CD3D11_BLEND_DESC structure that is initialized with default blend-state values.

void ~CD3D11_BLEND_DESC()

Destroys an instance of a CD3D11_BLEND_DESC structure.

Remarks

Here is how D3D11.h defines CD3D11_BLEND_DESC:


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

Requirements

Requirement Value
Minimum supported client Windows 7 [desktop apps | UWP apps]
Minimum supported server Windows Server 2008 R2 [desktop apps | UWP apps]
Header d3d11.h

See also

CD3D11 Helper Structures


Feedback

Was this page helpful?

Additional resources