BufferDescriptor class final

A general buffer — GraphicsDevice.createBuffer.

Annotations
  • @immutable

Constructors

BufferDescriptor({required int lengthInBytes, required BufferUsage usage, String? label})
Creates a description of a buffer lengthInBytes long for usage.
const

Properties

hashCode → int
The hash code for this object.
no setterinherited
label → String?
What a GPU debugger calls the buffer; null for none.
final
lengthInBytes → int
The buffer's size in bytes, nought or more.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
usage → BufferUsage
What the buffer may be used for. A backend refuses a call the usage does not cover; see BufferUsage.
final

Methods

checkFeatures(DeviceFeatures features, {required String backend}) → void
Throws UnsupportedCapabilityException when this buffer needs a feature features lacks: a storage usage (compute or renderStageStorage, either one), an indirect usage (indirectDraw or indirectDispatch, either one) or general buffers at all (buffers), in that order.
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