Table of Contents

Struct RasterizerStateDescription

Namespace
NeoVeldrid
Assembly
NeoVeldrid.dll

A Pipeline component describing the properties of the rasterizer.

public struct RasterizerStateDescription : IEquatable<RasterizerStateDescription>
Implements
Inherited Members

Constructors

RasterizerStateDescription(FaceCullMode, PolygonFillMode, FrontFace, bool, bool)

Constructs a new RasterizerStateDescription.

public RasterizerStateDescription(FaceCullMode cullMode, PolygonFillMode fillMode, FrontFace frontFace, bool depthClipEnabled, bool scissorTestEnabled)

Parameters

cullMode FaceCullMode

Controls which face will be culled.

fillMode PolygonFillMode

Controls how the rasterizer fills polygons.

frontFace FrontFace

Controls the winding order used to determine the front face of primitives.

depthClipEnabled bool

Controls whether depth clipping is enabled.

scissorTestEnabled bool

Controls whether the scissor test is enabled.

Fields

CullMode

Controls which face will be culled.

public FaceCullMode CullMode

Field Value

FaceCullMode

CullNone

Describes a rasterizer state with no culling, solid polygon filling, and both depth clipping and scissor tests enabled. Settings: CullMode = FaceCullMode.None FillMode = PolygonFillMode.Solid FrontFace = FrontFace.Clockwise DepthClipEnabled = true ScissorTestEnabled = false

public static readonly RasterizerStateDescription CullNone

Field Value

RasterizerStateDescription

Default

Describes the default rasterizer state, with clockwise backface culling, solid polygon filling, and both depth clipping and scissor tests enabled. Settings: CullMode = FaceCullMode.Back FillMode = PolygonFillMode.Solid FrontFace = FrontFace.Clockwise DepthClipEnabled = true ScissorTestEnabled = false

public static readonly RasterizerStateDescription Default

Field Value

RasterizerStateDescription

DepthClipEnabled

Controls whether depth clipping is enabled.

public bool DepthClipEnabled

Field Value

bool

FillMode

Controls how the rasterizer fills polygons.

public PolygonFillMode FillMode

Field Value

PolygonFillMode

FrontFace

Controls the winding order used to determine the front face of primitives.

public FrontFace FrontFace

Field Value

FrontFace

ScissorTestEnabled

Controls whether the scissor test is enabled.

public bool ScissorTestEnabled

Field Value

bool

Methods

Equals(RasterizerStateDescription)

Element-wise equality.

public bool Equals(RasterizerStateDescription other)

Parameters

other RasterizerStateDescription

The instance to compare to.

Returns

bool

True if all elements are equal; false otherswise.

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.