Struct RasterizerStateDescription
Describes a rasterizer state.
Implements
Inherited Members
Namespace: Evergine.Common.Graphics
Assembly: Evergine.Common.dll
Syntax
public struct RasterizerStateDescription : IEquatable<RasterizerStateDescription>
Fields
AntialiasedLineEnable
Specifies whether to enable line antialiasing; only applies if doing line drawing and MultisampleEnable is FALSE.
Declaration
public bool AntialiasedLineEnable
Field Value
Type | Description |
---|---|
bool |
CullMode
Indicates triangles facing the specified direction are not drawn.
Declaration
public CullMode CullMode
Field Value
Type | Description |
---|---|
CullMode |
DepthBias
Depth value added to a given pixel. For info about depth bias.
Declaration
public int DepthBias
Field Value
Type | Description |
---|---|
int |
DepthBiasClamp
Maximum depth bias of a pixel.
Declaration
public float DepthBiasClamp
Field Value
Type | Description |
---|---|
float |
DepthClipEnable
Enable clipping based on distance.
Declaration
public bool DepthClipEnable
Field Value
Type | Description |
---|---|
bool |
FillMode
Determines the fill mode to use when rendering.
Declaration
public FillMode FillMode
Field Value
Type | Description |
---|---|
FillMode |
FrontCounterClockwise
Determines if a triangle is front- or back-facing. If this parameter is TRUE, a triangle will be considered front-facing if its vertices are counter-clockwise on the render target and considered back-facing if they are clockwise. If this parameter is FALSE, the opposite is true.
Declaration
public bool FrontCounterClockwise
Field Value
Type | Description |
---|---|
bool |
ScissorEnable
Enable scissor-rectangle culling. All pixels outside an active scissor rectangle are culled.
Declaration
public bool ScissorEnable
Field Value
Type | Description |
---|---|
bool |
SlopeScaledDepthBias
Scalar on a given pixel's slope.
Declaration
public float SlopeScaledDepthBias
Field Value
Type | Description |
---|---|
float |
Properties
Default
Gets default values for RasterizerStateDescription.
Declaration
public static RasterizerStateDescription Default { get; }
Property Value
Type | Description |
---|---|
RasterizerStateDescription |
Methods
Equals(RasterizerStateDescription)
Returns a hash code for this instance.
Declaration
public bool Equals(RasterizerStateDescription other)
Parameters
Type | Name | Description |
---|---|---|
RasterizerStateDescription | other | Other used to compare. |
Returns
Type | Description |
---|---|
bool | A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table. |
Equals(object)
Determines whether the specified object is equal to this instance.
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
object | obj | The object to compare with this instance. |
Returns
Type | Description |
---|---|
bool |
|
Overrides
GetHashCode()
Returns a hash code for this instance.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
int | A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table. |
Overrides
SetDefault()
Default rasterizerstatedescription values.
Declaration
public void SetDefault()
Operators
operator ==(RasterizerStateDescription, RasterizerStateDescription)
Implements the operator ==.
Declaration
public static bool operator ==(RasterizerStateDescription value1, RasterizerStateDescription value2)
Parameters
Type | Name | Description |
---|---|---|
RasterizerStateDescription | value1 | The value1. |
RasterizerStateDescription | value2 | The value2. |
Returns
Type | Description |
---|---|
bool | The result of the operator. |
operator !=(RasterizerStateDescription, RasterizerStateDescription)
Implements the operator ==.
Declaration
public static bool operator !=(RasterizerStateDescription value1, RasterizerStateDescription value2)
Parameters
Type | Name | Description |
---|---|---|
RasterizerStateDescription | value1 | The value1. |
RasterizerStateDescription | value2 | The value2. |
Returns
Type | Description |
---|---|
bool | The result of the operator. |