CD3DX12_DEPTH_STENCIL_DESC 结构
一个帮助程序结构,用于轻松初始化 D3D12_DEPTH_STENCIL_DESC 结构。
语法
struct CD3DX12_DEPTH_STENCIL_DESC : public D3D12_DEPTH_STENCIL_DESC{
CD3DX12_DEPTH_STENCIL_DESC();
explicit CD3DX12_DEPTH_STENCIL_DESC(const D3D12_DEPTH_STENCIL_DESC& o);
explicit CD3DX12_DEPTH_STENCIL_DESC(CD3DX12_DEFAULT);
explicit CD3DX12_DEPTH_STENCIL_DESC(BOOL depthEnable, D3D12_DEPTH_WRITE_MASK depthWriteMask, D3D12_COMPARISON_FUNC depthFunc, BOOL stencilEnable, UINT8 stencilReadMask, UINT8 stencilWriteMask, D3D12_STENCIL_OP frontStencilFailOp, D3D12_STENCIL_OP frontStencilDepthFailOp, D3D12_STENCIL_OP frontStencilPassOp, D3D12_COMPARISON_FUNC frontStencilFunc, D3D12_STENCIL_OP backStencilFailOp, D3D12_STENCIL_OP backStencilDepthFailOp, D3D12_STENCIL_OP backStencilPassOp, D3D12_COMPARISON_FUNC backStencilFunc);
~CD3DX12_DEPTH_STENCIL_DESC();
operator const D3D12_DEPTH_STENCIL_DESC&() const;
};
成员
-
CD3DX12_DEPTH_STENCIL_DESC ()
-
创建D3DX12_DEPTH_STENCIL_DESC的未初始化的新实例。
-
explicit CD3DX12_DEPTH_STENCIL_DESC (const D3D12_DEPTH_STENCIL_DESC& o)
-
创建使用另一个D3D12_DEPTH_STENCIL_DESC结构的内容初始化的 D3DX12_DEPTH_STENCIL_DESC 的新实例。
-
显式CD3DX12_DEPTH_STENCIL_DESC (CD3DX12_DEFAULT)
-
创建使用默认参数初始化的D3DX12_DEPTH_STENCIL_DESC的新实例。
DepthEnable = TRUE; DepthWriteMask = D3D12_DEPTH_WRITE_MASK_ALL; DepthFunc = D3D12_COMPARISON_FUNC_LESS; StencilEnable = FALSE; StencilReadMask = D3D12_DEFAULT_STENCIL_READ_MASK; StencilWriteMask = D3D12_DEFAULT_STENCIL_WRITE_MASK; const D3D12_DEPTH_STENCILOP_DESC defaultStencilOp = { D3D12_STENCIL_OP_KEEP, D3D12_STENCIL_OP_KEEP, D3D12_STENCIL_OP_KEEP, D3D12_COMPARISON_FUNC_ALWAYS }; FrontFace = defaultStencilOp; BackFace = defaultStencilOp;
-
explicit CD3DX12_DEPTH_STENCIL_DESC (BOOL depthEnable, D3D12_DEPTH_WRITE_MASK depthWriteMask, D3D12_COMPARISON_FUNC depthFunc, BOOL 模具Enable, UINT8 stencilReadMask, UINT8 模具WriteMask、D3D12_STENCIL_OP frontStencilFailOp、D3D12_STENCIL_OP frontStencilDepthFailOp、D3D12_STENCIL_OP frontStencilPassOp、D3D12_COMPARISON_FUNC frontStencilFunc、D3D12_STENCIL_OP backStencilFailOp、D3D12_STENCIL_OP backStencilDepthFailOp、D3D12_STENCIL_OP backStencilPassOp、D3D12_COMPARISON_FUNC backStencilFunc)
-
创建D3DX12_DEPTH_STENCIL_DESC的新实例,初始化以下参数:
BOOL depthEnable
D3D12_DEPTH_WRITE_MASK depthWriteMask
D3D12_COMPARISON_FUNC depthFunc
BOOL 模具Enable
UINT8 模具ReadMask
UINT8 模具WriteMask
D3D12_STENCIL_OP frontStencilFailOp
D3D12_STENCIL_OP frontStencilDepthFailOp
D3D12_STENCIL_OP frontStencilPassOp
D3D12_COMPARISON_FUNC frontStencilFunc
D3D12_STENCIL_OP backStencilFailOp
D3D12_STENCIL_OP backStencilDepthFailOp
D3D12_STENCIL_OP backStencilPassOp
D3D12_COMPARISON_FUNC backStencilFunc
-
~CD3DX12_DEPTH_STENCIL_DESC ()
-
销毁CD3DX12_DEPTH_STENCIL_DESC的实例。
-
operator const D3D12_DEPTH_STENCIL_DESC& () const
-
定义 & 父结构类型的传递引用运算符。
要求
要求 | 值 |
---|---|
标头 |
|