Bagikan melalui


struktur CD3DX12_RASTERIZER_DESC

Struktur pembantu untuk mengaktifkan inisialisasi struktur D3D12_RASTERIZER_DESC yang mudah.

Sintaks

struct CD3DX12_RASTERIZER_DESC  : public D3D12_RASTERIZER_DESC{
   CD3DX12_RASTERIZER_DESC();
   explicit CD3DX12_RASTERIZER_DESC(const D3D12_RASTERIZER_DESC& o);
   explicit CD3DX12_RASTERIZER_DESC(CD3DX12_DEFAULT);
   explicit CD3DX12_RASTERIZER_DESC(D3D12_FILL_MODE fillMode, D3D12_CULL_MODE cullMode, BOOL frontCounterClockwise, INT depthBias, FLOAT depthBiasClamp, FLOAT slopeScaledDepthBias, BOOL depthClipEnable, BOOL multisampleEnable, BOOL antialiasedLineEnable, UINT forcedSampleCount, D3D12_CONSERVATIVE_RASTERIZATION_MODE conservativeRaster);
   ~CD3DX12_RASTERIZER_DESC();
   operator const D3D12_RASTERIZER_DESC&() const;
};

Anggota

CD3DX12_RASTERIZER_DESC()

Membuat instans CD3DX12_RASTERIZER_DESC baru yang belum diinisialisasi.

CD3DX12_RASTERIZER_DESC eksplisit(const D3D12_RASTERIZER_DESC&o)

Membuat instans baru CD3DX12_RASTERIZER_DESC, diinisialisasi dengan konten struktur D3D12_RASTERIZER_DESC lain.

CD3DX12_RASTERIZER_DESC eksplisit(CD3DX12_DEFAULT)

Membuat instans baru CD3DX12_RASTERIZER_DESC, diinisialisasi dengan parameter default.

        FillMode = D3D12_FILL_MODE_SOLID;  
        CullMode = D3D12_CULL_MODE_BACK;  
        FrontCounterClockwise = FALSE;  
        DepthBias = D3D12_DEFAULT_DEPTH_BIAS;  
        DepthBiasClamp = D3D12_DEFAULT_DEPTH_BIAS_CLAMP;  
        SlopeScaledDepthBias = D3D12_DEFAULT_SLOPE_SCALED_DEPTH_BIAS;  
        DepthClipEnable = TRUE;  
        MultisampleEnable = FALSE;  
        AntialiasedLineEnable = FALSE;  
        ForcedSampleCount = 0;  
        ConservativeRaster = D3D12_CONSERVATIVE_RASTERIZATION_MODE_OFF;  

CD3DX12_RASTERIZER_DESC eksplisit(D3D12_FILL_MODE fillMode, D3D12_CULL_MODE cullMode, BOOL frontCounterClockwise, INT depthBias, FLOAT depthBiasClamp, FLOAT slopeScaledDepthBias, BOOL depthClipEnable, BOOL multisampleEnable, BOOL antialiasedLineEnable, UINT forcedSampleCount, D3D12_CONSERVATIVE_RASTERIZATION_MODE conservativeRaster)

Membuat instans baru CD3DX12_RASTERIZER_DESC, menginisialisasi parameter berikut:

D3D12_FILL_MODE fillMode

D3D12_CULL_MODE cullMode

BOOL frontCounterClockwise

INT depthBias

Kedalaman FLOATBiasClamp

FLOAT slopeScaledDepthBias

Kedalaman BOOLClipEnable

MULTIsampleEnable BOOL

BOOL antialiasedLineEnable

UINT forcedSampleCount

D3D12_CONSERVATIVE_RASTERIZATION_MODE conservativeRaster

~CD3DX12_RASTERIZER_DESC()

Menghancurkan instans CD3DX12_RASTERIZER_DESC.

const operator D3D12_RASTERIZER_DESC&() const

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

Persyaratan

Persyaratan Value
Header
D3dx12.h

Baca juga

D3D12_RASTERIZER_DESC

Struktur Pembantu untuk D3D12