CD3DX12_BLEND_DESC structure

A helper structure to enable easy initialization of a D3D12_BLEND_DESC structure.

Syntax

struct CD3DX12_BLEND_DESC  : public D3D12_BLEND_DESC{
   CD3DX12_BLEND_DESC();
   explicit CD3DX12_BLEND_DESC(const D3D12_BLEND_DESC& o);
   explicit CD3DX12_BLEND_DESC(CD3DX12_DEFAULT);
   ~CD3DX12_BLEND_DESC();
   operator const D3D12_BLEND_DESC&() const;
};

Members

CD3DX12_BLEND_DESC()

Creates a new, uninitialized, instance of a CD3DX12_BLEND_DESC.

explicit CD3DX12_BLEND_DESC(const D3D12_BLEND_DESC& o)

Creates a new instance of a CD3DX12_BLEND_DESC, initialized with the contents of another D3D12_BLEND_DESC structure.

explicit CD3DX12_BLEND_DESC(CD3DX12_DEFAULT)

Creates a new instance of a CD3DX12_BLEND_DESC, initialized with default parameters.

State Default Value
AlphaToCoverageEnable FALSE
IndependentBlendEnable FALSE
RenderTarget[0].BlendEnable FALSE
RenderTarget[0].LogicOpEnable FALSE
RenderTarget[0].SrcBlend D3D12_BLEND_ONE
RenderTarget[0].DestBlend D3D12_BLEND_ZERO
RenderTarget[0].BlendOp D3D12_BLEND_OP_ADD
RenderTarget[0].SrcBlendAlpha D3D12_BLEND_ONE
RenderTarget[0].DestBlendAlpha D3D12_BLEND_ZERO
RenderTarget[0].BlendOpAlpha D3D12_BLEND_OP_ADD
RenderTarget[0].LogicOp D3D12_LOGIC_OP_NOOP
RenderTarget[0].RenderTargetWriteMask D3D12_COLOR_WRITE_ENABLE_ALL

~CD3DX12_BLEND_DESC()

Destroys an instance of a CD3DX12_BLEND_DESC.

operator const D3D12_BLEND_DESC&() const

Defines the & pass-by-reference operator for the parent structure type.

Requirements

Header
D3dx12.h

See also

D3D12_BLEND_DESC

Helper Structures for D3D12