HostBuffer class base

HostBuffer is a Buffer which is allocated on the host (native CPU resident memory) and lazily uploaded to the GPU. A HostBuffer can be safely mutated or extended at any time on the host, and will be automatically re-uploaded to the GPU the next time a GPU operation needs to access it.

This is useful for efficiently chunking sparse data uploads, especially ephemeral uniform data that needs to change from frame to frame.

Different platforms have different data alignment requirements for accessing device buffer data. The HostBuffer takes these requirements into account and automatically inserts padding between emplaced data if necessary.

Mixed-in types

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

emplace(ByteData bytes) BufferView
Append byte data to the end of the HostBuffer and produce a BufferView that references the new data in the buffer.
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