StorageMode class final
Where an allocation lives and how it may be used.
A class with constants rather than an enum, so a value added in a minor
release does not break a switch written against it: name is what a
file or a snapshot writes, and byName reads it back.
Properties
Methods
-
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.
inherited
Static Methods
-
byName(
String name) → StorageMode? -
The value called
name, or null for a name this version does not know, which is what a file written by a later version can carry.
Constants
- devicePrivate → const StorageMode
- Device-only. Optimal for the device; the host must copy through a host-visible allocation to read it.
- deviceTransient → const StorageMode
- Tile memory, for temporary render targets. Higher bandwidth, lower power, and no separate device allocation — but it cannot be copied to or from, which is what rules it out for anything a later pass reads. Textures only.
- hostVisible → const StorageMode
- Mappable into the host's address space and usable by the device.
-
values
→ const List<
StorageMode> - Every value this version names, in declaration order. A later version appends; nothing is removed or renamed within a major.