Skip to content

Struct ColorTarget

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

A color attachment to render into: its view (the image is in ), cleared or loaded, and kept or discarded.

public readonly record struct ColorTarget : IEquatable<ColorTarget>

Implements

IEquatable<ColorTarget>

Inherited Members

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

Constructors

ColorTarget(ImageView, bool, Vector4, bool)

A color attachment to render into: its view (the image is in ), cleared or loaded, and kept or discarded.

public ColorTarget(ImageView View, bool Clear = false, Vector4 ClearColor = default, bool Store = true)

Parameters

View ImageView

Clear bool

ClearColor Vector4

Store bool

Properties

Clear

public bool Clear { get; init; }

Property Value

bool

ClearColor

public Vector4 ClearColor { get; init; }

Property Value

Vector4

Store

public bool Store { get; init; }

Property Value

bool

View

public ImageView View { get; init; }

Property Value

ImageView