struct
RasterizerStateInformation
Describes a graphics pipeline rasterizer state.
Public
Methods
staticGenerateHash
Generates a hash value from a rasterizer state descriptor.
Fields
PolygonMode
Polygon mode allows you to draw polygons as solid objects or as wireframe by just drawing their edges.
CullMode
Sets vertex winding order.
Faces that contain vertices with this order will be culled and not rasterized. Used primarily for saving cycles by not rendering backfacing faces.
DepthBias
Represents a constant depth bias that will offset the depth values of new pixels by the specified amount.
DepthBiasClamp
Maximum depth bias value.
SlopeScaledDepthBias
Represents a dynamic depth bias that increases as the slope of the rendered polygons surface increases.
Resulting value offsets depth values of new pixels. This offset will be added on top of the constant depth bias.
DepthClipEnable
If true, clipping of polygons past the far Z plane is enabled.
This ensures proper Z ordering for polygons outside of valid depth range (otherwise they all have the same depth). It can be useful to disable if you are performing stencil operations that count on objects having a front and a back (like stencil shadow) and don't want to clip the back.
ScissorEnable
Scissor rectangle allows you to cull all pixels outside of the scissor rectangle.
MultisampleEnable
Determines how are samples in multi-sample render targets handled.
If disabled all samples in the render target will be written the same value, and if enabled each sample will be generated separately.
AntialiasedLineEnable
Determines should the lines be antialiased.
This is separate from multi-sample antialiasing setting as lines can be antialiased without multi-sampling.