Partager via


structure CD3DX12_DEPTH_STENCIL_DESC1

Structure d’assistance pour permettre l’initialisation facile d’une structure D3D12_DEPTH_STENCIL_DESC1 .

Syntaxe

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

Membres

CD3DX12_DEPTH_STENCIL_DESC1()

Crée un nouveau instance non initialisé d’un CD3DX12_DEPTH_STENCIL_DESC1.

explicit CD3DX12_DEPTH_STENCIL_DESC1(const D3D12_DEPTH_STENCIL_DESC1& o)

Crée un instance d’un CD3DX12_DEPTH_STENCIL_DESC1 initialisé avec des valeurs copiées à partir d’une structure de D3D12_DEPTH_STENCIL_DESC1.

explicit CD3DX12_DEPTH_STENCIL_DESC1(const D3D12_DEPTH_STENCIL_DESC& o)

Crée une instance d’une CD3DX12_DEPTH_STENCIL_DESC1, initialisée avec des valeurs copiées à partir d’une structure de D3D12_DEPTH_STENCIL_DESC

et le membre DepthBoundsTestEnable supplémentaire défini sur FALSE.

CD3DX12_DEPTH_STENCIL_DESC1 explicite(CD3DX12_DEFAULT)

Crée une instance d’un CD3DX12_DEPTH_STENCIL_DESC1, initialisé avec l’état par défaut prescrit par D3DX12 :

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

Crée une instance d’une CD3DX12_DEPTH_STENCIL_DESC1, initialisée avec les valeurs transmises dans la liste des paramètres.

~CD3DX12_DEPTH_STENCIL_DESC1()

Détruit un instance d’un D3DX12_DEPTH_STENCIL_DESC1.

operator const D3D12_DEPTH_STENCIL_DESC1&() const

Conversion implicite en structure D3D12_DEPTH_STENCIL_DESC1. Étant donné que D3D12_DEPTH_STENCIL_DESC1 est le type sous-jacent de CD3DX12_DEPTH_STENCIL_DESC1, l’objet est simplement retourné en tant que const D3D12_DEPTH_STENCIL_DESC1 référence à lui-même.

operator const D3D12_DEPTH_STENCIL_DESC() const

Conversion implicite en valeur de structure D3D12_DEPTH_STENCIL_DESC. Étant donné que D3D12_DEPTH_STENCIL_DESC n’est pas le type sous-jacent de CD3DX12_DEPTH_STENCIL_DESC1, une nouvelle D3D12_DEPTH_STENCIL_DESC instance est créée et retournée par valeur. Notez que D3D12_DEPTH_STENCIL_DESC n’inclut pas le membre DepthBoundsTestEnable . Cette valeur est donc perdue dans la conversion.

Spécifications

Condition requise Valeur
En-tête
D3dx12.h

Voir aussi

Structures d’assistance pour D3D12

D3D12_DEPTH_STENCIL_DESC1

D3D12_DEPTH_STENCIL_DESC