CD3DX12 _ DEPTH _ STENCIL _ DESC-Struktur

Eine Hilfsstruktur, um eine einfache Initialisierung einer D3D12 _ DEPTH _ STENCIL _ DESC-Struktur zu ermöglichen.

Syntax

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

Member

CD3DX12 _ DEPTH _ STENCIL _ DESC()

Erstellt eine neue, nicht initialisierte Instanz eines D3DX12 _ DEPTH _ STENCIL _ DESC.

explicit CD3DX12 _ DEPTH _ STENCIL _ DESC(const D3D12 _ DEPTH _ STENCIL _ DESC& o)

Erstellt eine neue Instanz einer D3DX12 _ DEPTH _ STENCIL _ DESC, initialisiert mit dem Inhalt einer anderen D3D12 _ DEPTH _ STENCIL _ DESC-Struktur.

Explicit CD3DX12 _ DEPTH _ STENCIL _ DESC(CD3DX12 _ DEFAULT)

Erstellt eine neue Instanz eines D3DX12 _ DEPTH _ STENCIL _ DESC, initialisiert mit Standardparametern.

        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 _SCHABLONE _ OP backStencilDepthFailOp, D3D12 _ STENCIL _ OP backStencilPassOp, D3D12 _ COMPARISON _ FUNC backStencilFunc)

Erstellt eine neue Instanz einer D3DX12 _ DEPTH _ STENCIL _ DESC, die die folgenden Parameter initialisiert:

BOOL depthEnable

D3D12 _ DEPTH _ WRITE _ MASK depthWriteMask

D3D12 _ VERGLEICH _ FUNC depthFunc

BOOL stencilEnable

UINT8 stencilReadMask

UINT8-SchabloneWriteMask

D3D12 _ STENCIL _ OP frontStencilFailOp

D3D12 _ STENCIL _ OP frontStencilDepthFailOp

D3D12 _ STENCIL _ OP frontStencilPassOp

D3D12 _ VERGLEICH _ FUNC frontStencilFunc

D3D12 _ STENCIL _ OP backStencilFailOp

D3D12 _ STENCIL _ OP backStencilDepthFailOp

D3D12 _ STENCIL _ OP backStencilPassOp

D3D12 _ VERGLEICH _ FUNC backStencilFunc

~CD3DX12 _ DEPTH _ STENCIL _ DESC()

Zerstört eine Instanz einer CD3DX12 _ DEPTH _ STENCIL _ DESC.

operator const D3D12 _ DEPTH _ STENCIL _ DESC&() const

Definiert den & Pass-by-Reference-Operator für den übergeordneten Strukturtyp.

Anforderungen

Anforderung Wert
Header
D3dx12.h

Weitere Informationen

D3D12 _ _ TIEFENSCHABLONE _ DESC

Strukturen des Hilfsprogramms für D3D12