Share via


struttura CD3DX12_DEPTH_STENCIL_DESC

Struttura helper per facilitare l'inizializzazione di una struttura D3D12_DEPTH_STENCIL_DESC.

Sintassi

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;
};

Membri

CD3DX12_DEPTH_STENCIL_DESC()

Crea una nuova istanza non inizializzata di un D3DX12_DEPTH_STENCIL_DESC.

explicit CD3DX12_DEPTH_STENCIL_DESC(const D3D12_DEPTH_STENCIL_DESC& o)

Crea una nuova istanza di un D3DX12_DEPTH_STENCIL_DESC, inizializzata con il contenuto di un'altra struttura D3D12_DEPTH_STENCIL_DESC .

CD3DX12_DEPTH_STENCIL_DESC espliciti (CD3DX12_DEFAULT)

Crea una nuova istanza di un D3DX12_DEPTH_STENCIL_DESC, inizializzata con parametri predefiniti.

        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, 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)

Crea una nuova istanza di un D3DX12_DEPTH_STENCIL_DESC, inizializzando i parametri seguenti:

Profondità BOOLAbilita

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()

Elimina un'istanza di un CD3DX12_DEPTH_STENCIL_DESC.

operator const D3D12_DEPTH_STENCIL_DESC&() const

Definisce l'operatore &pass-by-reference per il tipo di struttura padre.

Requisiti

Requisito Valore
Intestazione
D3dx12.h

Vedi anche

D3D12_DEPTH_STENCIL_DESC

Strutture helper per D3D12