Struct RasterizerStateDescription
- Namespace
- NeoVeldrid
- Assembly
- NeoVeldrid.dll
A Pipeline component describing the properties of the rasterizer.
public struct RasterizerStateDescription : IEquatable<RasterizerStateDescription>
- Implements
- Inherited Members
Constructors
RasterizerStateDescription(FaceCullMode, PolygonFillMode, FrontFace, bool, bool)
Constructs a new RasterizerStateDescription.
public RasterizerStateDescription(FaceCullMode cullMode, PolygonFillMode fillMode, FrontFace frontFace, bool depthClipEnabled, bool scissorTestEnabled)
Parameters
cullModeFaceCullModeControls which face will be culled.
fillModePolygonFillModeControls how the rasterizer fills polygons.
frontFaceFrontFaceControls the winding order used to determine the front face of primitives.
depthClipEnabledboolControls whether depth clipping is enabled.
scissorTestEnabledboolControls whether the scissor test is enabled.
Fields
CullMode
Controls which face will be culled.
public FaceCullMode CullMode
Field Value
CullNone
Describes a rasterizer state with no culling, solid polygon filling, and both depth clipping and scissor tests enabled. Settings: CullMode = FaceCullMode.None FillMode = PolygonFillMode.Solid FrontFace = FrontFace.Clockwise DepthClipEnabled = true ScissorTestEnabled = false
public static readonly RasterizerStateDescription CullNone
Field Value
Default
Describes the default rasterizer state, with clockwise backface culling, solid polygon filling, and both depth clipping and scissor tests enabled. Settings: CullMode = FaceCullMode.Back FillMode = PolygonFillMode.Solid FrontFace = FrontFace.Clockwise DepthClipEnabled = true ScissorTestEnabled = false
public static readonly RasterizerStateDescription Default
Field Value
DepthClipEnabled
Controls whether depth clipping is enabled.
public bool DepthClipEnabled
Field Value
FillMode
Controls how the rasterizer fills polygons.
public PolygonFillMode FillMode
Field Value
FrontFace
Controls the winding order used to determine the front face of primitives.
public FrontFace FrontFace
Field Value
ScissorTestEnabled
Controls whether the scissor test is enabled.
public bool ScissorTestEnabled
Field Value
Methods
Equals(RasterizerStateDescription)
Element-wise equality.
public bool Equals(RasterizerStateDescription other)
Parameters
otherRasterizerStateDescriptionThe instance to compare to.
Returns
- bool
True if all elements are equal; false otherswise.
GetHashCode()
Returns the hash code for this instance.
public override int GetHashCode()
Returns
- int
A 32-bit signed integer that is the hash code for this instance.