GraphicsAPI reference
Struct ColorAttachment
Namespace: MicroEngine.Graphics.Devices
Assembly: MicroEngine.Graphics.dll
Guide: The graphics device
The colour attachment of a pass.
public readonly struct ColorAttachment : IEquatable<ColorAttachment>Implements
Constructors
ColorAttachment(RenderTarget, LoadOp, StoreOp, ColorF)
The colour attachment of a pass.
public ColorAttachment(RenderTarget Target, LoadOp Load = LoadOp.Load, StoreOp Store = StoreOp.Store, ColorF Clear = default)Parameters
Target RenderTarget
The target; its ColorFormat must match the bound pipeline.
Load LoadOp
Load operation.
Store StoreOp
Store operation.
Clear ColorF
Clear value when Load is Clear (premultiplied).
Properties
Clear
Clear value when Load is Clear (premultiplied).
public ColorF Clear { 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; its ColorFormat must match the bound pipeline.
public RenderTarget Target { get; init; }Property Value
Methods
Deconstruct(out RenderTarget, out LoadOp, out StoreOp, out ColorF)
public void Deconstruct(out RenderTarget Target, out LoadOp Load, out StoreOp Store, out ColorF Clear)Parameters
Target RenderTarget
Load LoadOp
Store StoreOp
Clear ColorF
Equals(object)
public override bool Equals(object obj)Parameters
obj object
Returns
Equals(ColorAttachment)
public bool Equals(ColorAttachment other)Parameters
other ColorAttachment
Returns
GetHashCode()
public override int GetHashCode()Returns
ToString()
public override string ToString()Returns
Operators
operator ==(ColorAttachment, ColorAttachment)
public static bool operator ==(ColorAttachment left, ColorAttachment right)Parameters
left ColorAttachment
right ColorAttachment
Returns
operator !=(ColorAttachment, ColorAttachment)
public static bool operator !=(ColorAttachment left, ColorAttachment right)Parameters
left ColorAttachment
right ColorAttachment