structure CD3DX12_DEPTH_STENCIL_DESC
Structure d’assistance pour permettre l’initialisation facile d’une structure de D3D12_DEPTH_STENCIL_DESC .
Syntaxe
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;
};
Membres
-
CD3DX12_DEPTH_STENCIL_DESC()
-
Crée un nouveau instance non initialisé d’un D3DX12_DEPTH_STENCIL_DESC.
-
explicit CD3DX12_DEPTH_STENCIL_DESC(const D3D12_DEPTH_STENCIL_DESC& o)
-
Crée une instance d’une D3DX12_DEPTH_STENCIL_DESC, initialisée avec le contenu d’une autre structure D3D12_DEPTH_STENCIL_DESC.
-
CD3DX12_DEPTH_STENCIL_DESC explicite(CD3DX12_DEFAULT)
-
Crée une instance d’un D3DX12_DEPTH_STENCIL_DESC initialisé avec les paramètres par défaut.
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 stencilEnable, 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)
-
Crée une instance d’un D3DX12_DEPTH_STENCIL_DESC, initialisant les paramètres suivants :
PROFONDEUR DE TYPE BOOLEnable
D3D12_DEPTH_WRITE_MASK depthWriteMask
D3D12_COMPARISON_FUNC depthFunc
Gabarit BOOLEnable
Gabarit UINT8ReadMask
Gabarit UINT8WriteMask
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()
-
Détruit un instance d’un CD3DX12_DEPTH_STENCIL_DESC.
-
operator const D3D12_DEPTH_STENCIL_DESC&() const
-
Définit l’opérateur & pass-by-reference pour le type de structure parent.
Spécifications
Condition requise | Valeur |
---|---|
En-tête |
|