Struct RasterizerStateDescription
A Pipeline component describing the properties of the rasterizer.
Implements
Inherited Members
Namespace: Veldrid
Assembly: cs.temp.dll.dll
Syntax
public struct RasterizerStateDescription : IEquatable<RasterizerStateDescription>
Constructors
RasterizerStateDescription(FaceCullMode, PolygonFillMode, FrontFace, Boolean, Boolean)
Constructs a new RasterizerStateDescription.
Declaration
public RasterizerStateDescription(FaceCullMode cullMode, PolygonFillMode fillMode, FrontFace frontFace, bool depthClipEnabled, bool scissorTestEnabled)
Parameters
Type | Name | Description |
---|---|---|
FaceCullMode | cullMode | Controls which face will be culled. |
PolygonFillMode | fillMode | Controls how the rasterizer fills polygons. |
FrontFace | frontFace | Controls the winding order used to determine the front face of primitives. |
System.Boolean | depthClipEnabled | Controls whether depth clipping is enabled. |
System.Boolean | scissorTestEnabled | Controls whether the scissor test is enabled. |
Fields
CullMode
Controls which face will be culled.
Declaration
public FaceCullMode CullMode
Field Value
Type | Description |
---|---|
FaceCullMode |
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
Declaration
public static readonly RasterizerStateDescription CullNone
Field Value
Type | Description |
---|---|
RasterizerStateDescription |
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
Declaration
public static readonly RasterizerStateDescription Default
Field Value
Type | Description |
---|---|
RasterizerStateDescription |
DepthClipEnabled
Controls whether depth clipping is enabled.
Declaration
public bool DepthClipEnabled
Field Value
Type | Description |
---|---|
System.Boolean |
FillMode
Controls how the rasterizer fills polygons.
Declaration
public PolygonFillMode FillMode
Field Value
Type | Description |
---|---|
PolygonFillMode |
FrontFace
Controls the winding order used to determine the front face of primitives.
Declaration
public FrontFace FrontFace
Field Value
Type | Description |
---|---|
FrontFace |
ScissorTestEnabled
Controls whether the scissor test is enabled.
Declaration
public bool ScissorTestEnabled
Field Value
Type | Description |
---|---|
System.Boolean |
Methods
Equals(RasterizerStateDescription)
Element-wise equality.
Declaration
public bool Equals(RasterizerStateDescription other)
Parameters
Type | Name | Description |
---|---|---|
RasterizerStateDescription | other | The instance to compare to. |
Returns
Type | Description |
---|---|
System.Boolean | True if all elements are equal; false otherswise. |
GetHashCode()
Returns the hash code for this instance.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 | A 32-bit signed integer that is the hash code for this instance. |