GeometryUsage enum

What a buffer will be bound as.

Not a hint. One backend cannot infer it and cannot change its mind: WebGL binds a buffer to its target for life, so a buffer uploaded as vertices can never afterwards be bound as indices — the attempt is an INVALID_OPERATION, the draw is dropped, and the frame comes back the clear colour with nothing logged anywhere.

flutter_gpu has no such split: a DeviceBuffer is untyped and a BufferView binds either way, which is why the contract went without this until a second backend was written against it. The engine has always known which it was uploading, so saying so costs a word at each call site.

Inheritance
Available extensions

Values

vertices → const GeometryUsage

Interleaved vertex attributes.

indices → const GeometryUsage

Indices, of the width the draw will name.

Plural to stay clear of Enum.index, which every enum already has.

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<GeometryUsage>
A constant List of the values in this enum, in order of their declaration.