CD3DX12_RASTERIZER_DESC 结构

帮助程序结构,用于轻松初始化 D3D12_RASTERIZER_DESC 结构。

语法

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

成员

CD3DX12_RASTERIZER_DESC ()

创建CD3DX12_RASTERIZER_DESC的未初始化的新实例。

explicit CD3DX12_RASTERIZER_DESC (const D3D12_RASTERIZER_DESC& o)

创建CD3DX12_RASTERIZER_DESC的新实例,该实例使用另一个 D3D12_RASTERIZER_DESC 结构的内容进行初始化。

显式CD3DX12_RASTERIZER_DESC (CD3DX12_DEFAULT)

创建使用默认参数初始化的 CD3DX12_RASTERIZER_DESC 的新实例。

        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)

创建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 保守拉斯特

~CD3DX12_RASTERIZER_DESC ()

销毁CD3DX12_RASTERIZER_DESC的实例。

operator const D3D12_RASTERIZER_DESC& () const

定义 & 父结构类型的传递引用运算符。

要求

要求
标头
D3dx12.h

另请参阅

D3D12_RASTERIZER_DESC

D3D12 的帮助程序结构