GraphicsAPI reference
Struct DepthAttachment
Namespace: MicroEngine.Graphics.Devices
Assembly: MicroEngine.Graphics.dll
Guide: The graphics device
The depth attachment of a pass: the depth texture of a target created with Depth.
public readonly struct DepthAttachment : IEquatable<DepthAttachment>Implements
Constructors
DepthAttachment(RenderTarget, LoadOp, StoreOp, float)
The depth attachment of a pass: the depth texture of a target created with Depth.
public DepthAttachment(RenderTarget Target, LoadOp Load = LoadOp.Clear, StoreOp Store = StoreOp.DontCare, float ClearDepth = 1)Parameters
Target RenderTarget
The target owning the depth texture (same size as the colour attachment).
Load LoadOp
Load operation.
Store StoreOp
Store operation.
ClearDepth float
Clear depth when Load is Clear (0..1).
Properties
ClearDepth
Clear depth when Load is Clear (0..1).
public float ClearDepth { get; init; }Property Value
Load
Load operation.
public LoadOp Load { get; init; }Property Value
Store
Store operation.
public StoreOp Store { get; init; }Property Value
Target
The target owning the depth texture (same size as the colour attachment).
public RenderTarget Target { get; init; }Property Value
Methods
Deconstruct(out RenderTarget, out LoadOp, out StoreOp, out float)
public void Deconstruct(out RenderTarget Target, out LoadOp Load, out StoreOp Store, out float ClearDepth)Parameters
Target RenderTarget
Load LoadOp
Store StoreOp
ClearDepth float
Equals(object)
public override bool Equals(object obj)Parameters
obj object
Returns
Equals(DepthAttachment)
public bool Equals(DepthAttachment other)Parameters
other DepthAttachment
Returns
GetHashCode()
public override int GetHashCode()Returns
ToString()
public override string ToString()Returns
Operators
operator ==(DepthAttachment, DepthAttachment)
public static bool operator ==(DepthAttachment left, DepthAttachment right)Parameters
left DepthAttachment
right DepthAttachment
Returns
operator !=(DepthAttachment, DepthAttachment)
public static bool operator !=(DepthAttachment left, DepthAttachment right)Parameters
left DepthAttachment
right DepthAttachment