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
- cullModeCullMode
- The cull mode. 
Fields
CullMode
Indicates triangles facing the specified direction are not drawn (see CullMode).
public CullMode CullModeField Value
DepthBias
Depth value added to a given pixel.
public int DepthBiasField 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 DepthBiasClampField Value
DepthClipEnable
Enable clipping based on distance.
public bool DepthClipEnableField Value
FillMode
Determines the fill mode to use when rendering (see FillMode).
public FillMode FillModeField 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 FrontFaceCounterClockwiseField Value
MultisampleAntiAliasLine
Enable line antialiasing; only applies if doing line drawing and MultisampleEnable is false.
public bool MultisampleAntiAliasLineField Value
MultisampleCount
Multisample level.
public MultisampleCount MultisampleCountField Value
ScissorTestEnable
Enable scissor-rectangle culling. All pixels ouside an active scissor rectangle are culled.
public bool ScissorTestEnableField Value
SlopeScaleDepthBias
Scalar on a given pixel's slope.
public float SlopeScaleDepthBiasField 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
- otherRasterizerStateDescription
- An 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
- objobject
- The object to compare with the current instance. 
Returns
- bool
- true if - objand 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)