Struct RasterizerStateDescription
Describes a rasterizer state.
[DataContract]
public struct RasterizerStateDescription : IEquatable<RasterizerStateDescription>
- Implements
- Inherited Members
Constructors
RasterizerStateDescription(CullMode)
Initializes a new instance of the RasterizerStateDescription class.
public RasterizerStateDescription(CullMode cullMode)
Parameters
cullMode
CullModeThe cull mode.
Fields
CullMode
Indicates triangles facing the specified direction are not drawn (see CullMode).
public CullMode CullMode
Field Value
DepthBias
Depth value added to a given pixel.
public int DepthBias
Field Value
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
DepthClipEnable
Enable clipping based on distance.
public bool DepthClipEnable
Field Value
FillMode
Determines the fill mode to use when rendering (see FillMode).
public FillMode FillMode
Field Value
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
MultisampleAntiAliasLine
Enable line antialiasing; only applies if doing line drawing and MultisampleEnable is false.
public bool MultisampleAntiAliasLine
Field Value
MultisampleCount
Multisample level.
public MultisampleCount MultisampleCount
Field Value
ScissorTestEnable
Enable scissor-rectangle culling. All pixels ouside an active scissor rectangle are culled.
public bool ScissorTestEnable
Field Value
SlopeScaleDepthBias
Scalar on a given pixel's slope.
public float SlopeScaleDepthBias
Field Value
Properties
Default
Gets default values for this instance.
public static RasterizerStateDescription Default { get; }
Property Value
Methods
Equals(RasterizerStateDescription)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(RasterizerStateDescription other)
Parameters
other
RasterizerStateDescriptionAn object to compare with this object.
Returns
Equals(object)
Indicates whether this instance and a specified object are equal.
public override bool Equals(object obj)
Parameters
obj
objectThe object to compare with the current instance.
Returns
- bool
true if
obj
and this instance are the same type and represent the same value; otherwise, false.
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.
SetDefault()
Sets default values for this instance.
public void SetDefault()
Operators
operator ==(RasterizerStateDescription, RasterizerStateDescription)
public static bool operator ==(RasterizerStateDescription left, RasterizerStateDescription right)
Parameters
Returns
operator !=(RasterizerStateDescription, RasterizerStateDescription)
public static bool operator !=(RasterizerStateDescription left, RasterizerStateDescription right)