ColorTarget class final

One colour attachment of a pass.

Constructors

ColorTarget({required TextureHandle texture, TextureHandle? resolveTexture, LoadAction loadAction = LoadAction.clear, StoreAction storeAction = StoreAction.store, Vector4? clearValue, int face = 0, int mipLevel = 0})
const

Properties

clearValue → Vector4?
Null clears to transparent black. Linear light, not sRGB, for anything written into an HDR target.
final
face int
Which face of a cube texture the pass draws into, in the order every backend uploads them: +X, −X, +Y, −Y, +Z, −Z. Zero for a 2D texture, which has only the one.
final
hashCode int
The hash code for this object.
no setterinherited
loadAction LoadAction
LoadAction.clear covers the whole attachment however the viewport and the scissor are set. The shadow atlas depends on that: it loads, and blanks one tile by drawing inside it.
final
mipLevel int
Which level of texture's mip chain the pass draws into. Zero is the base.
final
resolveTexture TextureHandle?
Where a multisampled texture is resolved to when the pass ends.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
storeAction StoreAction
final
texture TextureHandle
Where the rasteriser writes. Multisampled when resolveTexture is set.
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