CD3D11_RASTERIZER_DESC2 structure (d3d11_3.h)
Describes rasterizer state.
Syntax
struct CD3D11_RASTERIZER_DESC2 : D3D11_RASTERIZER_DESC2 {
void CD3D11_RASTERIZER_DESC2();
void CD3D11_RASTERIZER_DESC2(
const D3D11_RASTERIZER_DESC2 & o
);
void CD3D11_RASTERIZER_DESC2(
CD3D11_DEFAULT unnamedParam1
);
void CD3D11_RASTERIZER_DESC2(
D3D11_FILL_MODE fillMode,
D3D11_CULL_MODE cullMode,
BOOL frontCounterClockwise,
INT depthBias,
FLOAT depthBiasClamp,
FLOAT slopeScaledDepthBias,
BOOL depthClipEnable,
BOOL scissorEnable,
BOOL multisampleEnable,
BOOL antialiasedLineEnable,
UINT forcedSampleCount,
D3D11_CONSERVATIVE_RASTERIZATION_MODE conservativeRaster
);
void ~CD3D11_RASTERIZER_DESC2();
};
Inheritance
The CD3D11_RASTERIZER_DESC2 structure implements D3D11_RASTERIZER_DESC2.
Members
void CD3D11_RASTERIZER_DESC2()
TBD
void CD3D11_RASTERIZER_DESC2( const D3D11_RASTERIZER_DESC2 & o)
void CD3D11_RASTERIZER_DESC2( CD3D11_DEFAULT unnamedParam1)
void CD3D11_RASTERIZER_DESC2( D3D11_FILL_MODE fillMode, D3D11_CULL_MODE cullMode, BOOL frontCounterClockwise, INT depthBias, FLOAT depthBiasClamp, FLOAT slopeScaledDepthBias, BOOL depthClipEnable, BOOL scissorEnable, BOOL multisampleEnable, BOOL antialiasedLineEnable, UINT forcedSampleCount, D3D11_CONSERVATIVE_RASTERIZATION_MODE conservativeRaster)
void ~CD3D11_RASTERIZER_DESC2()
TBD
Remarks
Rasterizer state defines the behavior of the rasterizer stage. To create a rasterizer-state object, call ID3D11Device3::CreateRasterizerState2. To set rasterizer state, call ID3D11DeviceContext::RSSetState.
If you do not specify some rasterizer state, the Direct3D runtime uses the following default values for rasterizer state.
State | Default Value |
---|---|
FillMode | Solid |
CullMode | Back |
FrontCounterClockwise | FALSE |
DepthBias | 0 |
SlopeScaledDepthBias | 0.0f |
DepthBiasClamp | 0.0f |
DepthClipEnable | TRUE |
ScissorEnable | FALSE |
MultisampleEnable | FALSE |
AntialiasedLineEnable | FALSE |
ForcedSampleCount | 0 |
ConservativeRaster | D3D11_CONSERVATIVE_RASTERIZATION_MODE_OFF |
Line-rendering algorithm | MultisampleEnable | AntialiasedLineEnable |
---|---|---|
Aliased | FALSE | FALSE |
Alpha antialiased | FALSE | TRUE |
Quadrilateral | TRUE | FALSE |
Quadrilateral | TRUE | TRUE |
The settings of the MultisampleEnable and AntialiasedLineEnable members apply only to multisample antialiasing (MSAA) render targets (that is, render targets with sample counts greater than 1). Because of the differences in feature-level behavior and as long as you aren’t performing any line drawing or don’t mind that lines render as quadrilaterals, we recommend that you always set MultisampleEnable to TRUE whenever you render on MSAA render targets.
Requirements
Requirement | Value |
---|---|
Header | d3d11_3.h |