TextureDimension class final
The shape of a texture, as a view of it is bound.
WebGPU's view dimensions. Separate from TextureType, which mirrors flutter_gpu value for value and grows only when flutter_gpu does.
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) → TextureDimension? -
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
- cube → const TextureDimension
- Six square faces sampled by direction.
- cubeArray → const TextureDimension
- Several cubes, addressed by cube index.
- d1 → const TextureDimension
- One row of texels.
- d2 → const TextureDimension
- A plain 2D image — what every texture before 0.9 was, cubes aside.
- d2Array → const TextureDimension
- Several 2D images of one size, addressed by layer.
- d3 → const TextureDimension
- A volume of texels.
-
values
→ const List<
TextureDimension> - Every value this version names, in declaration order. A later version appends; nothing is removed or renamed within a major.