CD3D11_DEPTH_STENCIL_DESC 結構 (d3d11.h)
表示深度樣板狀態結構,並提供建立深度樣板狀態結構的便利方法。
Syntax
struct CD3D11_DEPTH_STENCIL_DESC : D3D11_DEPTH_STENCIL_DESC {
void CD3D11_DEPTH_STENCIL_DESC();
void CD3D11_DEPTH_STENCIL_DESC(
const D3D11_DEPTH_STENCIL_DESC & o
);
void CD3D11_DEPTH_STENCIL_DESC(
CD3D11_DEFAULT unnamedParam1
);
void CD3D11_DEPTH_STENCIL_DESC(
BOOL depthEnable,
D3D11_DEPTH_WRITE_MASK depthWriteMask,
D3D11_COMPARISON_FUNC depthFunc,
BOOL stencilEnable,
UINT8 stencilReadMask,
UINT8 stencilWriteMask,
D3D11_STENCIL_OP frontStencilFailOp,
D3D11_STENCIL_OP frontStencilDepthFailOp,
D3D11_STENCIL_OP frontStencilPassOp,
D3D11_COMPARISON_FUNC frontStencilFunc,
D3D11_STENCIL_OP backStencilFailOp,
D3D11_STENCIL_OP backStencilDepthFailOp,
D3D11_STENCIL_OP backStencilPassOp,
D3D11_COMPARISON_FUNC backStencilFunc
);
void ~CD3D11_DEPTH_STENCIL_DESC();
};
繼承
CD3D11_DEPTH_STENCIL_DESC 結構會實作 D3D11_DEPTH_STENCIL_DESC。
成員
void CD3D11_DEPTH_STENCIL_DESC ()
具現化未初始化 CD3D11_DEPTH_STENCIL_DESC 結構的新實例。
void CD3D11_DEPTH_STENCIL_DESC ( const D3D11_DEPTH_STENCIL_DESC & o)
具現化使用 D3D11_DEPTH_STENCIL_DESC 結構初始化之CD3D11_DEPTH_STENCIL_DESC結構的新實例。
void CD3D11_DEPTH_STENCIL_DESC ( CD3D11_DEFAULT unnamedParam1)
具現化以預設深度樣板狀態值初始化之 CD3D11_DEPTH_STENCIL_DESC 結構的新實例。
void CD3D11_DEPTH_STENCIL_DESC( BOOL depthEnable, D3D11_DEPTH_WRITE_MASK depthWriteMask, D3D11_COMPARISON_FUNC depthFunc, BOOL stencilEnable, UINT8 stencilReadMask, UINT8 stencilWriteMask, D3D11_STENCIL_OP frontStencilFailOp, D3D11_STENCIL_OP frontStencilDepthFailOp, D3D11_STENCIL_OP frontStencilPassOp, D3D11_COMPARISON_FUNC frontStencilFunc, D3D11_STENCIL_OP backStencilFailOp, D3D11_STENCIL_OP backStencilDepthFailOp, D3D11_STENCIL_OP backStencilPassOp, D3D11_COMPARISON_FUNC backStencilFunc)
void ~CD3D11_DEPTH_STENCIL_DESC ()
終結 CD3D11_DEPTH_STENCIL_DESC 結構的實例。
備註
以下是 D3D11.h 定義 CD3D11_DEPTH_STENCIL_DESC的方式:
struct CD3D11_DEPTH_STENCIL_DESC : public D3D11_DEPTH_STENCIL_DESC { CD3D11_DEPTH_STENCIL_DESC() {} explicit CD3D11_DEPTH_STENCIL_DESC( const D3D11_DEPTH_STENCIL_DESC& o ) : D3D11_DEPTH_STENCIL_DESC( o ) {} explicit CD3D11_DEPTH_STENCIL_DESC( CD3D11_DEFAULT ) { DepthEnable = TRUE; DepthWriteMask = D3D11_DEPTH_WRITE_MASK_ALL; DepthFunc = D3D11_COMPARISON_LESS; StencilEnable = FALSE; StencilReadMask = D3D11_DEFAULT_STENCIL_READ_MASK; StencilWriteMask = D3D11_DEFAULT_STENCIL_WRITE_MASK; const D3D11_DEPTH_STENCILOP_DESC defaultStencilOp = { D3D11_STENCIL_OP_KEEP, D3D11_STENCIL_OP_KEEP, D3D11_STENCIL_OP_KEEP, D3D11_COMPARISON_ALWAYS }; FrontFace = defaultStencilOp; BackFace = defaultStencilOp; } explicit CD3D11_DEPTH_STENCIL_DESC( BOOL depthEnable, D3D11_DEPTH_WRITE_MASK depthWriteMask, D3D11_COMPARISON_FUNC depthFunc, BOOL stencilEnable, UINT8 stencilReadMask, UINT8 stencilWriteMask, D3D11_STENCIL_OP frontStencilFailOp, D3D11_STENCIL_OP frontStencilDepthFailOp, D3D11_STENCIL_OP frontStencilPassOp, D3D11_COMPARISON_FUNC frontStencilFunc, D3D11_STENCIL_OP backStencilFailOp, D3D11_STENCIL_OP backStencilDepthFailOp, D3D11_STENCIL_OP backStencilPassOp, D3D11_COMPARISON_FUNC backStencilFunc ) { DepthEnable = depthEnable; DepthWriteMask = depthWriteMask; DepthFunc = depthFunc; StencilEnable = stencilEnable; StencilReadMask = stencilReadMask; StencilWriteMask = stencilWriteMask; FrontFace.StencilFailOp = frontStencilFailOp; FrontFace.StencilDepthFailOp = frontStencilDepthFailOp; FrontFace.StencilPassOp = frontStencilPassOp; FrontFace.StencilFunc = frontStencilFunc; BackFace.StencilFailOp = backStencilFailOp; BackFace.StencilDepthFailOp = backStencilDepthFailOp; BackFace.StencilPassOp = backStencilPassOp; BackFace.StencilFunc = backStencilFunc; } ~CD3D11_DEPTH_STENCIL_DESC() {} operator const D3D11_DEPTH_STENCIL_DESC&() const { return *this; } }; |
規格需求
最低支援的用戶端 | Windows 7 [傳統型應用程式 |UWP 應用程式] |
最低支援的伺服器 | Windows Server 2008 R2 [傳統型應用程式 |UWP 應用程式] |
標頭 | d3d11.h |