共用方式為


CD3DX12_BLEND_DESC 結構

協助程序結構,可讓您輕鬆初始化 D3D12_BLEND_DESC 結構。

語法

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;
};

成員

CD3DX12_BLEND_DESC()

建立新的未初始化CD3DX12_BLEND_DESC實例。

explicit CD3DX12_BLEND_DESC(const D3D12_BLEND_DESC& o)

建立CD3DX12_BLEND_DESC的新實例,以另一個 D3D12_BLEND_DESC 結構的內容初始化。

明確CD3DX12_BLEND_DESC(CD3DX12_DEFAULT)

建立以預設參數初始化之CD3DX12_BLEND_DESC的新實例。

州/省 預設值
AlphaToCoverageEnable
IndependentBlendEnable
RenderTarget[0]。BlendEnable
RenderTarget[0]。LogicOpEnable
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()

終結CD3DX12_BLEND_DESC的實例。

operator const D3D12_BLEND_DESC&() const

定義父結構類型的 和 傳遞參考運算元。

需求

需求
頁首
D3dx12.h

另請參閱

D3D12_BLEND_DESC

D3D12 的協助程序結構