Readback

Edit

Readbacks track the progress of an asynchronous read of a Buffer or Texture. The Readback can be polled for completion or the CPU with Readback:isComplete, or you can wait for it to finish using Readback:wait.

Constructors

Buffer:newReadbackRead back the contents of the Buffer asynchronously.
Texture:newReadbackRead back the contents of the Texture asynchronously.

Methods

Readback:getBlobGet Readback's data as a Blob.
Readback:getDataGet Readback's data as a table.
Readback:getImageGet Readback's data as an Image.
Readback:isCompleteCheck if a Readback is complete.
Readback:waitWait for the Readback to finish.

See also