StorageMode enum
Specifies where an allocation resides and how it may be used.
Values
- hostVisible → const StorageMode
-
Allocations can be mapped onto the hosts address space and also be used by the device.
- devicePrivate → const StorageMode
-
Allocations can only be used by the device. This location is optimal for use by the device. If the host needs to access these allocations, the data must first be copied into a host visible allocation.
- deviceTransient → const StorageMode
-
Used by the device for temporary render targets. These allocations cannot be copied to or from other allocations. This storage mode is only valid for Textures.
These allocations reside in tile memory which has higher bandwidth, lower latency and lower power consumption. The total device memory usage is also lower as a separate allocation does not need to be created in device memory. Prefer using these allocations for intermediates like depth and stencil buffers.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- index → int
-
A numeric identifier for the enumerated value.
no setterinherited
- name → String
-
Available on Enum, provided by the EnumName extension
The name of the enum value.no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
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
Constants
-
values
→ const List<
StorageMode> - A constant List of the values in this enum, in order of their declaration.