Table of Contents

Struct RasterizerStateDescription

Namespace
Stride.Graphics
Assembly
Stride.Graphics.dll

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 CullMode

The cull mode.

Fields

CullMode

Indicates triangles facing the specified direction are not drawn (see CullMode).

public CullMode CullMode

Field Value

CullMode

DepthBias

Depth value added to a given pixel.

public int DepthBias

Field Value

int

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

float

DepthClipEnable

Enable clipping based on distance.

public bool DepthClipEnable

Field Value

bool

FillMode

Determines the fill mode to use when rendering (see FillMode).

public FillMode FillMode

Field Value

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

bool

MultisampleAntiAliasLine

Enable line antialiasing; only applies if doing line drawing and MultisampleEnable is false.

public bool MultisampleAntiAliasLine

Field Value

bool

MultisampleCount

Multisample level.

public MultisampleCount MultisampleCount

Field Value

MultisampleCount

ScissorTestEnable

Enable scissor-rectangle culling. All pixels ouside an active scissor rectangle are culled.

public bool ScissorTestEnable

Field Value

bool

SlopeScaleDepthBias

Scalar on a given pixel's slope.

public float SlopeScaleDepthBias

Field Value

float

Properties

Default

Gets default values for this instance.

public static RasterizerStateDescription Default { get; }

Property Value

RasterizerStateDescription

Methods

Equals(RasterizerStateDescription)

Indicates whether the current object is equal to another object of the same type.

public bool Equals(RasterizerStateDescription other)

Parameters

other RasterizerStateDescription

An object to compare with this object.

Returns

bool

true if the current object is equal to the other parameter; otherwise, false.

Equals(object)

Indicates whether this instance and a specified object are equal.

public override bool Equals(object obj)

Parameters

obj object

The 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

left RasterizerStateDescription
right RasterizerStateDescription

Returns

bool

operator !=(RasterizerStateDescription, RasterizerStateDescription)

public static bool operator !=(RasterizerStateDescription left, RasterizerStateDescription right)

Parameters

left RasterizerStateDescription
right RasterizerStateDescription

Returns

bool