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
-
~CD3DX12_RASTERIZER_DESC()
-
終結CD3DX12_RASTERIZER_DESC的實例。
-
operator const D3D12_RASTERIZER_DESC&() const
-
定義父結構類型的 和 傳遞參考運算元。
需求
需求 | 值 |
---|---|
頁首 |
|