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
Methods
-
contains(
TextureUsage other) → bool -
Whether every usage in
otheris 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
createTexturehas always been. - storage → const TextureUsage
-
Bound as a storage texture —
DeviceFeature.storageTextures.