Compartir a través de


estructura de CD3DX12_RASTERIZER_DESC

Estructura auxiliar para habilitar la inicialización sencilla de una estructura de D3D12_RASTERIZER_DESC .

Sintaxis

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

Miembros

CD3DX12_RASTERIZER_DESC()

Crea una nueva instancia sin inicializar de un CD3DX12_RASTERIZER_DESC.

explicit CD3DX12_RASTERIZER_DESC(const D3D12_RASTERIZER_DESC& o)

Crea una nueva instancia de un CD3DX12_RASTERIZER_DESC, inicializado con el contenido de otra estructura de D3D12_RASTERIZER_DESC .

CD3DX12_RASTERIZER_DESC(CD3DX12_DEFAULT) explícitos

Crea una nueva instancia de un CD3DX12_RASTERIZER_DESC, inicializada con parámetros predeterminados.

        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)

Crea una nueva instancia de un CD3DX12_RASTERIZER_DESC, inicializando los parámetros siguientes:

D3D12_FILL_MODE fillMode

D3D12_CULL_MODE cullMode

BOOL frontCounterClockwise

Profundidad INTBias

Profundidad FLOATBiasClamp

Float slopeScaledDepthBias

Profundidad BOOLClipEnable

BOOL multisampleEnable

BoOL antialiasedLineEnable

UINT forcedSampleCount

D3D12_CONSERVATIVE_RASTERIZATION_MODE conservativeRaster

~CD3DX12_RASTERIZER_DESC()

Destruye una instancia de un CD3DX12_RASTERIZER_DESC.

operator const D3D12_RASTERIZER_DESC&() const

Define el & operador pass-by-reference para el tipo de estructura primario.

Requisitos

Requisito Value
Encabezado
D3dx12.h

Vea también

D3D12_RASTERIZER_DESC

Estructuras auxiliares de D3D12