RasterizerStateDescription Struct
Namespace: Stride.GraphicsAssembly: Stride.Graphics.dll
Describes a rasterizer state.
[DataContract]
public struct RasterizerStateDescription : IEquatable<RasterizerStateDescription>
Name | Description | |
---|---|---|
Constructors | ||
RasterizerStateDescription(CullMode) | Initializes a new instance of the RasterizerStateDescription class. |
|
Fields | ||
CullMode | Indicates triangles facing the specified direction are not drawn (see CullMode). |
|
DepthBias | Depth value added to a given pixel. |
|
DepthBiasClamp | Gets or sets the depth bias for polygons, which is the amount of bias to apply to the depth of a primitive to alleviate depth testing problems for primitives of similar depth. The default value is 0. |
|
DepthClipEnable | Enable clipping based on distance. |
|
FillMode | Determines the fill mode to use when rendering (see FillMode). |
|
FrontFaceCounterClockwise | Determines if a triangle is front- or back-facing. If this parameter is true, then 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 then the opposite is true. |
|
MultisampleAntiAliasLine | Enable line antialiasing; only applies if doing line drawing and MultisampleEnable is false. |
|
MultisampleCount | Multisample level. |
|
ScissorTestEnable | Enable scissor-rectangle culling. All pixels ouside an active scissor rectangle are culled. |
|
SlopeScaleDepthBias | Scalar on a given pixel's slope. |
|
Properties | ||
Default | Gets default values for this instance. |
|
Methods | ||
Equals(RasterizerStateDescription) | ||
Equals(Object) | ||
GetHashCode() | ||
SetDefault() | Sets default values for this instance. |
|
Operators | ||
Equality(RasterizerStateDescription, RasterizerStateDescription) | ||
Inequality(RasterizerStateDescription, RasterizerStateDescription) |
Constructors
RasterizerStateDescription(CullMode)
Initializes a new instance of the RasterizerStateDescription class.
public RasterizerStateDescription(CullMode cullMode)
Parameters
Type | Name | Description |
---|---|---|
CullMode | cullMode | The cull mode. |
Fields
CullMode
Indicates triangles facing the specified direction are not drawn (see CullMode).
public CullMode CullMode
Field Value
Type | Description |
---|---|
CullMode |
DepthBias
Depth value added to a given pixel.
public int DepthBias
Field Value
Type | Description |
---|---|
System.Int32 |
DepthBiasClamp
Gets or sets the depth bias for polygons, which is the amount of bias to apply to the depth of a primitive to alleviate depth testing problems for primitives of similar depth. The default value is 0.
public float DepthBiasClamp
Field Value
Type | Description |
---|---|
System.Single |
DepthClipEnable
Enable clipping based on distance.
public bool DepthClipEnable
Field Value
Type | Description |
---|---|
System.Boolean |
FillMode
Determines the fill mode to use when rendering (see FillMode).
public FillMode FillMode
Field Value
Type | Description |
---|---|
FillMode |
FrontFaceCounterClockwise
Determines if a triangle is front- or back-facing. If this parameter is true, then 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 then the opposite is true.
public bool FrontFaceCounterClockwise
Field Value
Type | Description |
---|---|
System.Boolean |
MultisampleAntiAliasLine
Enable line antialiasing; only applies if doing line drawing and MultisampleEnable is false.
public bool MultisampleAntiAliasLine
Field Value
Type | Description |
---|---|
System.Boolean |
MultisampleCount
Multisample level.
public MultisampleCount MultisampleCount
Field Value
Type | Description |
---|---|
MultisampleCount |
ScissorTestEnable
Enable scissor-rectangle culling. All pixels ouside an active scissor rectangle are culled.
public bool ScissorTestEnable
Field Value
Type | Description |
---|---|
System.Boolean |
SlopeScaleDepthBias
Scalar on a given pixel's slope.
public float SlopeScaleDepthBias
Field Value
Type | Description |
---|---|
System.Single |
Properties
Default
Gets default values for this instance.
public static readonly RasterizerStateDescription Default { get; }
Property Value
Type | Description |
---|---|
RasterizerStateDescription |
Methods
Equals(RasterizerStateDescription)
public bool Equals(RasterizerStateDescription other)
Parameters
Type | Name | Description |
---|---|---|
RasterizerStateDescription | other |
Returns
Type | Description |
---|---|
System.Boolean |
Equals(Object)
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
System.Object | obj |
Returns
Type | Description |
---|---|
System.Boolean |
Overrides
GetHashCode()
public override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 |
Overrides
SetDefault()
Sets default values for this instance.
public void SetDefault()
Operators
Equality(RasterizerStateDescription, RasterizerStateDescription)
public static bool operator ==(RasterizerStateDescription left, RasterizerStateDescription right)
Parameters
Type | Name | Description |
---|---|---|
RasterizerStateDescription | left | |
RasterizerStateDescription | right |
Returns
Type | Description |
---|---|
System.Boolean |
Inequality(RasterizerStateDescription, RasterizerStateDescription)
public static bool operator !=(RasterizerStateDescription left, RasterizerStateDescription right)
Parameters
Type | Name | Description |
---|---|---|
RasterizerStateDescription | left | |
RasterizerStateDescription | right |
Returns
Type | Description |
---|---|
System.Boolean |