Constructor
new ReadbackBuffer( maxByteLength : number )
Constructs a new readback buffer.
| maxByteLength |
The maximum size of the buffer to be read back. |
Properties
.buffer : ArrayBuffer | null
The mapped, read back array buffer.
.isReadbackBuffer : boolean (readonly)
This flag can be used for type testing.
Default is true.
.maxByteLength : number
The maximum size of the buffer to be read back.
.name : string
Name used for debugging purposes.
Methods
.dispose()
Frees internal resources.
.release()
Releases the mapped buffer data so the GPU buffer can be used by the GPU again.
Note: Any ArrayBuffer data associated with this readback buffer
are removed and no longer accessible after calling this method.