RenderTargetSpec class final
What makes two render targets interchangeable.
A value type so it can be a map key: the pool's whole job is to answer "have I already got one of these", and that question is exactly this tuple.
Constructors
- RenderTargetSpec({required int width, required int height, required TextureFormat format, int sampleCount = 1, StorageMode storageMode = StorageMode.devicePrivate})
-
const
- RenderTargetSpec.of(TextureHandle texture)
-
The description a texture already carries, read back off it.
factory
Properties
- format → TextureFormat
-
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- height → int
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sampleCount → int
-
final
- storageMode → StorageMode
-
deviceTransientis tile memory: cheaper, but cannot be sampled or loaded from, which rules it out for anything the next pass reads.final - width → int
-
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
scaled(
int divisor) → RenderTargetSpec -
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override