Partager via


CD3DX12_RASTERIZER_DESC structure

Structure d’assistance pour faciliter l’initialisation d’une structure de D3D12_RASTERIZER_DESC .

Syntaxe

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

Membres

CD3DX12_RASTERIZER_DESC()

Crée un instance non initialisé d’un CD3DX12_RASTERIZER_DESC.

explicit CD3DX12_RASTERIZER_DESC(const D3D12_RASTERIZER_DESC& o)

Crée une instance d’une CD3DX12_RASTERIZER_DESC, initialisée avec le contenu d’une autre structure D3D12_RASTERIZER_DESC.

explicit CD3DX12_RASTERIZER_DESC(CD3DX12_DEFAULT)

Crée une instance d’une CD3DX12_RASTERIZER_DESC, initialisée avec les paramètres par défaut.

        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;  

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)

Crée une instance d’un CD3DX12_RASTERIZER_DESC, en initialisant les paramètres suivants :

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

Détruit un instance d’un CD3DX12_RASTERIZER_DESC.

operator const D3D12_RASTERIZER_DESC&() const

Définit l’opérateur & pass-by-reference pour le type de structure parent.

Spécifications

Condition requise Valeur
En-tête
D3dx12.h

Voir aussi

D3D12_RASTERIZER_DESC

Structures d’assistance pour D3D12