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
lengthInByteslong forusage.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
UnsupportedCapabilityExceptionwhen this buffer needs a featurefeatureslacks: a storage usage (computeorrenderStageStorage, either one), an indirect usage (indirectDraworindirectDispatch, 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