CD3D11_BLEND_DESC 结构 (d3d11.h)
表示混合状态结构,并提供用于创建混合状态结构的便捷方法。
语法
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();
};
继承
CD3D11_BLEND_DESC 结构实现D3D11_BLEND_DESC。
成员
实例化未初始化 的 CD3D11_BLEND_DESC 结构的新实例。
void CD3D11_BLEND_DESC ( const D3D11_BLEND_DESC & o)
实例化 使用 CD3D11_BLEND_DESC 结构初始化的 CD3D11_BLEND_DESC 结构的新实例。
void CD3D11_BLEND_DESC ( CD3D11_DEFAULT unnamedParam1)
实例化使用默认混合状态值初始化的 CD3D11_BLEND_DESC 结构的新实例。
销毁 CD3D11_BLEND_DESC 结构的实例。
注解
下面是 D3D11.h 定义 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; }
};
要求
要求 | 值 |
---|---|
最低受支持的客户端 | Windows 7 [桌面应用 |UWP 应用] |
最低受支持的服务器 | Windows Server 2008 R2 [桌面应用 |UWP 应用] |
标头 | d3d11.h |