Bagikan melalui


struktur CD3DX12_DEPTH_STENCIL_DESC

Struktur pembantu untuk mengaktifkan inisialisasi struktur D3D12_DEPTH_STENCIL_DESC yang mudah.

Sintaks

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

Anggota

CD3DX12_DEPTH_STENCIL_DESC()

Membuat instans D3DX12_DEPTH_STENCIL_DESC baru yang belum diinisialisasi.

CD3DX12_DEPTH_STENCIL_DESC eksplisit(const D3D12_DEPTH_STENCIL_DESC&o)

Membuat instans baru D3DX12_DEPTH_STENCIL_DESC, diinisialisasi dengan konten struktur D3D12_DEPTH_STENCIL_DESC lain.

CD3DX12_DEPTH_STENCIL_DESC eksplisit(CD3DX12_DEFAULT)

Membuat instans baru D3DX12_DEPTH_STENCIL_DESC, diinisialisasi dengan parameter default.

        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;  

CD3DX12_DEPTH_STENCIL_DESC eksplisit(BOOL depthEnable, D3D12_DEPTH_WRITE_MASK depthWriteMask, D3D12_COMPARISON_FUNC depthFunc, BOOL stencilEnable, UINT8 stencilReadMask, Stensil UINT8WriteMask, 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)

Membuat instans baru D3DX12_DEPTH_STENCIL_DESC, menginisialisasi parameter berikut:

Kedalaman BOOLEnable

D3D12_DEPTH_WRITE_MASK depthWriteMask

D3D12_COMPARISON_FUNC depthFunc

Stensil BOOLEnable

Stensil UINT8ReadMask

Stensil UINT8WriteMask

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

Menghancurkan instans CD3DX12_DEPTH_STENCIL_DESC.

const operator D3D12_DEPTH_STENCIL_DESC&() const

Menentukan operator &pass-by-reference untuk jenis struktur induk.

Persyaratan

Persyaratan Value
Header
D3dx12.h

Baca juga

D3D12_DEPTH_STENCIL_DESC

Struktur Pembantu untuk D3D12