_ _ Structure DESC1 du stencil de profondeur CD3DX12 _

Une structure d’assistance pour faciliter l’initialisation d’une structure _ DESC1 de _ stencil _ de profondeur D3D12 .

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 _ de profondeur du _ stencil _ DESC1 ()

Crée une nouvelle instance non initialisée d’un _ stencil de profondeur CD3DX12 _ _ DESC1.

_stencil de profondeur CD3DX12 explicite _ _ DESC1 (const D3D12 de _ profondeur du _ stencil _ DESC1& o)

Crée une nouvelle instance d’un _ stencil de profondeur CD3DX12 _ _ DESC1, initialisée avec les valeurs copiées à partir d’une structure DESC1 de _ stencil de profondeur _ _ D3D12 .

_stencil de profondeur CD3DX12 explicite _ _ DESC1 (const _ D3D12 _ desc du stencil _& o)

Crée une nouvelle instance d’un _ stencil de profondeur CD3DX12 _ _ DESC1, initialisée avec les valeurs copiées à partir d’une structure DESC du _ stencil de profondeur _ _ D3D12

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

CD3DX12 _ de profondeur du _ stencil explicite _ DESC1 (CD3DX12 _ par défaut)

Crée une nouvelle instance d’un _ stencil de profondeur CD3DX12 _ _ DESC1, initialisée 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;
          

CD3DX12 de _ profondeur du _ stencil explicite _ DESC1 (bool depthEnable, D3D12 _ masque d’écriture de profondeur _ _ depthWriteMask, D3D12 de comparaison DepthFunc, _ _ bool STENCILENABLE, UInt8 StencilReadMask, UINT8 stencilWriteMask, D3D12 stencil op frontStencilFailOp, D3D12 stencil op frontStencilDepthFailOp, D3D12 stencil op FRONTSTENCILPASSOP, D3D12 de _ _ _ _ _ _ _ comparaison _ Func frontStencilFunc, D3D12 _ stencil _ op backStencilFailOp, D3D12 _Gabarit _ OP backStencilDepthFailOp, D3D12 _ stencil _ op BACKSTENCILPASSOP, D3D12 _ comparaison _ Func backStencilFunc, bool depthBoundsTestEnable)

Crée une nouvelle instance d’un _ stencil de profondeur CD3DX12 _ _ DESC1, initialisée avec les valeurs passées dans la liste de paramètres.

~ CD3DX12 _ de profondeur du _ stencil _ DESC1 ()

Détruit une instance d’un stencil de _ profondeur _ D3DX12 _ DESC1.

@ const D3D12 _ de profondeur du _ STENCIL _ DESC1& () const

Conversion implicite en _ structure DESC1 du stencil de profondeur D3D12 _ _ . Étant donné _ que _ le stencil de profondeur D3D12 _ DESC1 est le type sous-jacent du _ stencil de profondeur CD3DX12 _ _ DESC1, l’objet est simplement retourné en tant que référence de stencil de profondeur D3D12 const _ _ _ à lui-même.

const D3D12- _ _ Description du stencil _ de profondeur () const

Conversion implicite en _ valeur de _ structure DESC du stencil de profondeur D3D12 _ . Étant donné _ que _ _ la description du stencil de profondeur D3D12 n’est pas le type sous-jacent du _ stencil de profondeur CD3DX12 _ _ DESC1, une nouvelle _ instance DESC du stencil de profondeur D3D12 _ _ est créée et retournée par valeur. Notez que la _ Description du stencil D3D12 Depth _ _ n’inclut pas le membre DepthBoundsTestEnable . cette valeur est donc perdue lors de la conversion.

Spécifications

Condition requise Valeur
En-tête
D3dx12. h

Voir aussi

Structures d’assistance pour D3D12

D3D12 _ du _ stencil de profondeur _ DESC1

_Description du _ stencil de profondeur D3D12 _