Skip to content

GraphicsAPI reference

Struct RasterState

Namespace: MicroEngine.Graphics.Devices
Assembly: MicroEngine.Graphics.dll
Guide: The graphics device

Rasterizer state. Scissor is not here: it is dynamic pass state, always on (SetScissor).

C#
public readonly struct RasterState : IEquatable<RasterState>

Implements

IEquatable<RasterState>

Constructors

RasterState(CullMode, FrontFace)

Rasterizer state. Scissor is not here: it is dynamic pass state, always on (SetScissor).

C#
public RasterState(CullMode Cull = CullMode.None, FrontFace Front = FrontFace.CounterClockwise)

Parameters

Cull CullMode

Culling.

Front FrontFace

Front-face winding.

Properties

Cull

Culling.

C#
public CullMode Cull { get; init; }

Property Value

CullMode

Front

Front-face winding.

C#
public FrontFace Front { get; init; }

Property Value

FrontFace

Methods

Deconstruct(out CullMode, out FrontFace)

C#
public void Deconstruct(out CullMode Cull, out FrontFace Front)

Parameters

Cull CullMode

Front FrontFace

Equals(object)

C#
public override bool Equals(object obj)

Parameters

obj object

Returns

bool

Equals(RasterState)

C#
public bool Equals(RasterState other)

Parameters

other RasterState

Returns

bool

GetHashCode()

C#
public override int GetHashCode()

Returns

int

ToString()

C#
public override string ToString()

Returns

string

Operators

operator ==(RasterState, RasterState)

C#
public static bool operator ==(RasterState left, RasterState right)

Parameters

left RasterState

right RasterState

Returns

bool

operator !=(RasterState, RasterState)

C#
public static bool operator !=(RasterState left, RasterState right)

Parameters

left RasterState

right RasterState

Returns

bool