wait.lua 637 B

123456789101112131415161718192021
  1. return {
  2. tag = 'work-submission',
  3. summary = 'Stall the CPU until all submitted GPU work is finished.',
  4. description = [[
  5. Waits for all submitted GPU work to finish. A normal application that is trying to render
  6. graphics at a high framerate should never use this function, since waiting like this prevents
  7. the CPU from doing other useful work. Otherwise, reasons to use this function might be for
  8. debugging or to force a `Readback` to finish immediately.
  9. ]],
  10. arguments = {},
  11. returns = {},
  12. variants = {
  13. {
  14. arguments = {},
  15. returns = {}
  16. }
  17. },
  18. related = {
  19. 'lovr.graphics.submit'
  20. }
  21. }