Readbacks track the progress of an asynchronous read of a Buffer
, Texture
, or Tally
. Once a Readback is created in a transfer pass, and the transfer pass is submitted, the Readback can be polled for completion or the CPU can wait for it to finish using Readback:wait
.
Constructor
Pass:read | Download data from a GPU resource. |
Methods
Readback:getBlob | Get Readback's data as a Blob. |
Readback:getData | Get Readback's data as a table. |
Readback:getImage | Get Readback's data as an Image. |
Readback:isComplete | Check if a Readback is complete. |
Readback:wait | Wait for the Readback to finish. |
See also