Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

CD3DX12_RASTERIZER_DESC structure

A helper structure to enable easy initialization of a D3D12_RASTERIZER_DESC structure.

Syntax

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

Members

CD3DX12_RASTERIZER_DESC()

Creates a new, uninitialized, instance of a CD3DX12_RASTERIZER_DESC.

explicit CD3DX12_RASTERIZER_DESC(const D3D12_RASTERIZER_DESC& o)

Creates a new instance of a CD3DX12_RASTERIZER_DESC, initialized with the contents of another D3D12_RASTERIZER_DESC structure.

explicit CD3DX12_RASTERIZER_DESC(CD3DX12_DEFAULT)

Creates a new instance of a CD3DX12_RASTERIZER_DESC, initialized with default parameters.

 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)

Creates a new instance of a CD3DX12_RASTERIZER_DESC, initializing the following parameters:

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

Destroys an instance of a CD3DX12_RASTERIZER_DESC.

operator const D3D12_RASTERIZER_DESC&() const

Defines the & pass-by-reference operator for the parent structure type.

Requirements

Requirement Value
Header
D3dx12.h

See also

D3D12_RASTERIZER_DESC

Helper Structures for D3D12


Feedback

Was this page helpful?

Additional resources