CD3DX12_DEPTH_STENCIL_DESC1 Struktur

Eine Hilfsstruktur, um eine einfache Initialisierung einer D3D12_DEPTH_STENCIL_DESC1 Struktur zu ermöglichen.

Syntax

struct CD3DX12_DEPTH_STENCIL_DESC1  : public D3D12_DEPTH_STENCIL_DESC1{
  CD3DX12_DEPTH_STENCIL_DESC1 CD3DX12_DEPTH_STENCIL_DESC1();
  CD3DX12_DEPTH_STENCIL_DESC1 explicit CD3DX12_DEPTH_STENCIL_DESC1(const D3D12_DEPTH_STENCIL_DESC1& o);
  CD3DX12_DEPTH_STENCIL_DESC1 explicit CD3DX12_DEPTH_STENCIL_DESC1(const D3D12_DEPTH_STENCIL_DESC& o);
  CD3DX12_DEPTH_STENCIL_DESC1 explicit CD3DX12_DEPTH_STENCIL_DESC1(CD3DX12_DEFAULT);
  CD3DX12_DEPTH_STENCIL_DESC1 explicit CD3DX12_DEPTH_STENCIL_DESC1(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, BOOL depthBoundsTestEnable);
                              ~CD3DX12_DEPTH_STENCIL_DESC1();
                              operator const D3D12_DEPTH_STENCIL_DESC1&() const;
                              operator const D3D12_DEPTH_STENCIL_DESC() const;
};

Member

CD3DX12_DEPTH_STENCIL_DESC1()

Erstellt eine neue, nicht initialisierte instance einer CD3DX12_DEPTH_STENCIL_DESC1.

explizite CD3DX12_DEPTH_STENCIL_DESC1(const D3D12_DEPTH_STENCIL_DESC1& o)

Erstellt eine neue instance einer CD3DX12_DEPTH_STENCIL_DESC1, die mit Werten initialisiert wird, die aus einer D3D12_DEPTH_STENCIL_DESC1-Struktur kopiert wurden.

explizite CD3DX12_DEPTH_STENCIL_DESC1(const D3D12_DEPTH_STENCIL_DESC& o)

Erstellt eine neue instance eines CD3DX12_DEPTH_STENCIL_DESC1, initialisiert mit Werten, die aus einer D3D12_DEPTH_STENCIL_DESC-Struktur kopiert wurden

und das zusätzliche DepthBoundsTestEnable-Element , das auf FALSE festgelegt ist.

explizite CD3DX12_DEPTH_STENCIL_DESC1(CD3DX12_DEFAULT)

Erstellt eine neue instance einer CD3DX12_DEPTH_STENCIL_DESC1, die mit dem von D3DX12 vorgeschriebenen Standardzustand initialisiert wird:

        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;
    DepthBoundsTestEnable = FALSE;
          

explicit CD3DX12_DEPTH_STENCIL_DESC1(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, BOOL depthBoundsTestEnable)

Erstellt eine neue instance einer CD3DX12_DEPTH_STENCIL_DESC1, die mit den in der Parameterliste übergebenen Werten initialisiert wird.

~CD3DX12_DEPTH_STENCIL_DESC1()

Zerstört eine instance eines D3DX12_DEPTH_STENCIL_DESC1.

operator const D3D12_DEPTH_STENCIL_DESC1&() const

Implizite Konvertierung in eine D3D12_DEPTH_STENCIL_DESC1-Struktur. Da D3D12_DEPTH_STENCIL_DESC1 der zugrunde liegende Typ von CD3DX12_DEPTH_STENCIL_DESC1 ist, wird das Objekt einfach als const D3D12_DEPTH_STENCIL_DESC1 Verweis auf sich selbst zurückgegeben.

operator const D3D12_DEPTH_STENCIL_DESC() const

Implizite Konvertierung in einen D3D12_DEPTH_STENCIL_DESC Strukturwert. Da D3D12_DEPTH_STENCIL_DESC nicht der zugrunde liegende Typ von CD3DX12_DEPTH_STENCIL_DESC1 ist, wird eine neue D3D12_DEPTH_STENCIL_DESC instance erstellt und vom Wert zurückgegeben. Beachten Sie, dass D3D12_DEPTH_STENCIL_DESC den DepthBoundsTestEnable-Member nicht enthält, sodass dieser Wert bei der Konvertierung verloren geht.

Anforderungen

Anforderung Wert
Header
D3dx12.h

Siehe auch

Strukturen des Hilfsprogramms für D3D12

D3D12_DEPTH_STENCIL_DESC1

D3D12_DEPTH_STENCIL_DESC