GraphicsAPI reference
Struct DepthState
Namespace: MicroEngine.Graphics.Devices
Assembly: MicroEngine.Graphics.dll
Guide: The graphics device
Depth test and write. Depth is 0 (near) .. 1 (far); anything but None requires DepthBuffer.
public readonly struct DepthState : IEquatable<DepthState>Implements
Constructors
DepthState(bool, bool, CompareOp)
Depth test and write. Depth is 0 (near) .. 1 (far); anything but None requires DepthBuffer.
public DepthState(bool Test, bool Write, CompareOp Compare)Parameters
Test bool
Compare against the depth attachment.
Write bool
Write passing depths.
Compare CompareOp
The comparison when Test is set.
Fields
LessWrite
Test less, write: the usual opaque 3D state.
public static readonly DepthState LessWriteField Value
None
No depth test, no depth write.
public static readonly DepthState NoneField Value
Properties
Compare
The comparison when Test is set.
public CompareOp Compare { get; init; }Property Value
Test
Compare against the depth attachment.
public bool Test { get; init; }Property Value
Write
Write passing depths.
public bool Write { get; init; }Property Value
Methods
Deconstruct(out bool, out bool, out CompareOp)
public void Deconstruct(out bool Test, out bool Write, out CompareOp Compare)Parameters
Test bool
Write bool
Compare CompareOp
Equals(object)
public override bool Equals(object obj)Parameters
obj object
Returns
Equals(DepthState)
public bool Equals(DepthState other)Parameters
other DepthState
Returns
GetHashCode()
public override int GetHashCode()Returns
ToString()
public override string ToString()Returns
Operators
operator ==(DepthState, DepthState)
public static bool operator ==(DepthState left, DepthState right)Parameters
left DepthState
right DepthState
Returns
operator !=(DepthState, DepthState)
public static bool operator !=(DepthState left, DepthState right)Parameters
left DepthState
right DepthState