Skip to content

Struct DepthTarget

Namespace: Apogee.Graphics
Assembly: Apogee.Graphics.dll

The depth attachment. The engine uses reverse-Z, so the usual clear value is 0 (the far plane).

public readonly record struct DepthTarget : IEquatable<DepthTarget>

Implements

IEquatable<DepthTarget>

Inherited Members

object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.ReferenceEquals(object?, object?), object.ToString()

Constructors

DepthTarget(ImageView, bool, float, bool, bool)

The depth attachment. The engine uses reverse-Z, so the usual clear value is 0 (the far plane).

public DepthTarget(ImageView View, bool Clear = false, float ClearDepth = 0, bool Store = true, bool ReadOnly = false)

Parameters

View ImageView

Clear bool

ClearDepth float

Store bool

ReadOnly bool

Properties

Clear

public bool Clear { get; init; }

Property Value

bool

ClearDepth

public float ClearDepth { get; init; }

Property Value

float

ReadOnly

public bool ReadOnly { get; init; }

Property Value

bool

Store

public bool Store { get; init; }

Property Value

bool

View

public ImageView View { get; init; }

Property Value

ImageView