TextureUsage class final

What a texture may be used for, fixed when it is made.

Flags combined with |. A final class rather than an enum, because a set of usages is a value and an enum value is one usage.

Annotations
  • @immutable

Properties

bits → int
final
hashCode → int
The hash code for this object.
no setteroverride
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

contains(TextureUsage other) → bool
Whether every usage in other is in this one.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
override

Operators

operator ==(Object other) → bool
The equality operator.
override
operator |(TextureUsage other) → TextureUsage

Constants

copyDestination → const TextureUsage
The destination of a copy or a write.
copySource → const TextureUsage
The source of a copy, or of a readback.
renderTarget → const TextureUsage
A colour or depth attachment of a pass.
sampled → const TextureUsage
Bound to a stage and sampled.
standard → const TextureUsage
Sampled, drawn into and copied either way: what a texture made by createTexture has always been.
storage → const TextureUsage
Bound as a storage texture — DeviceFeature.storageTextures.