Readback:wait

Edit

Blocks the CPU until the Readback is finished on the GPU.

waited = Readback:wait()

Arguments

None

Returns

NameTypeDescription
waitedboolean Whether the CPU had to be blocked for waiting.

Notes

If lovr.graphics.submit or lovr.graphics.wait has not been called since the readback was created, the readback has not been submitted yet, so no wait will occur and this function will return false.

See also