TraceColorTarget class final

One colour attachment, with its textures named by id: a ColorTarget as a trace writes it.

A class, not a record, since 1.0, so a field ColorTarget gains in a minor is a field here with the same default, and a trace written before it reads as what it was. The defaults are ColorTarget's.

Constructors

TraceColorTarget({required int texture, int? resolveTexture, LoadAction loadAction = LoadAction.clear, StoreAction storeAction = StoreAction.store, ClearColor? clearValue, int face = 0, int mipLevel = 0, int layer = 0})
Creates an attachment of texture id texture, with ColorTarget's defaults for everything else.
const

Properties

clearValue → ClearColor?
The colour a clear writes, linear RGBA, unitless; null clears to transparent black.
final
face → int
The cube face, mip level and array layer the pass draws into.
final
hashCode → int
The hash code for this object.
no setterinherited
layer → int
The array layer the pass draws into, zero for the first. Not written to the file when zero.
final
loadAction → LoadAction
What the attachment holds when the pass begins; clears by default.
final
mipLevel → int
The mip level the pass draws into, zero for the base level.
final
resolveTexture → int?
Where a multisampled attachment resolves, by id; null for none.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
storeAction → StoreAction
What happens to the attachment's contents when the pass ends; kept by default.
final
texture → int
The attachment, by the id the trace created it under.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited