Class RasterizerStates
Defines a set of built-in RasterizerStateDescriptions for common rasterizer configurations.
public static class RasterizerStates
- Inheritance
-
objectRasterizerStates
Fields
CullBack
A built-in Rasterizer State object with settings for culling primitives with counter-clockwise winding order.
public static readonly RasterizerStateDescription CullBack
Field Value
CullFront
A built-in Rasterizer State object with settings for culling primitives with clockwise winding order.
public static readonly RasterizerStateDescription CullFront
Field Value
CullNone
A built-in Rasterizer State object with settings for not culling any primitives.
public static readonly RasterizerStateDescription CullNone
Field Value
Default
A built-in Rasterizer State object with default settings.
public static readonly RasterizerStateDescription Default
Field Value
Remarks
The default values are:
- FillMode: Rasterize filled triangles (Solid).
- CullMode: Cull back-facing primitives (Back).
- FrontFaceCounterClockwise: Consider front-facing the primitives whose vertices are ordered clockwise (false).
- DepthClipEnable: Clip primitives outside the near and far clipping planes (true).
- Scissor testing disabled.
- No multisampling (None) and no antialiased lines.
- No DepthBias, DepthBiasClamp, or SlopeScaleDepthBias.
Wireframe
A built-in Rasterizer State object for wireframe with settings for not culling any primitives.
public static readonly RasterizerStateDescription Wireframe
Field Value
WireframeCullBack
A built-in Rasterizer State object for wireframe with settings for culling primitives with counter-clockwise winding order.
public static readonly RasterizerStateDescription WireframeCullBack
Field Value
WireframeCullFront
A built-in Rasterizer State object for wireframe rendering with settings for culling primitives with clockwise winding order.
public static readonly RasterizerStateDescription WireframeCullFront