getData.lua 562 B

12345678910111213141516171819202122232425
  1. return {
  2. summary = 'Get Readback\'s data as a table.',
  3. description = [[
  4. Returns the data from the Readback, as a table. See `Buffer:getData` for the way the table is
  5. structured.
  6. ]],
  7. arguments = {},
  8. returns = {
  9. data = {
  10. type = 'table',
  11. description = 'A table containing the data that was read back.'
  12. }
  13. },
  14. variants = {
  15. {
  16. arguments = {},
  17. returns = { 'data' }
  18. }
  19. },
  20. notes = 'This returns `nil` for readbacks of `Texture` objects.',
  21. related = {
  22. 'Readback:getBlob',
  23. 'Readback:getImage'
  24. }
  25. }