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)
-
创建使用另一个D3D12_BLEND_DESC结构的内容初始化的 CD3DX12_BLEND_DESC 的新实例。
-
显式CD3DX12_BLEND_DESC (CD3DX12_DEFAULT)
-
创建使用默认参数初始化的CD3DX12_BLEND_DESC的新实例。
状态 默认值 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 ()
-
销毁CD3DX12_BLEND_DESC的实例。
-
operator const D3D12_BLEND_DESC& () const
-
定义 & 父结构类型的传递引用运算符。
要求
要求 | 值 |
---|---|
标头 |
|