getTallyBuffer.lua 914 B

123456789101112131415161718192021222324252627282930313233
  1. return {
  2. tag = 'tally',
  3. summary = 'Get the Buffer that tally results will be written to.',
  4. description = [[
  5. Returns the Buffer that tally results will be written to. Each time the render pass finishes,
  6. the results of all the tallies will be copied to the Buffer at the specified offset. The buffer
  7. can be used in a later pass in a compute shader, or the data in the buffer can be read back
  8. using e.g. `Buffer:newReadback`.
  9. If no buffer has been set, this function will return `nil`.
  10. ]],
  11. arguments = {},
  12. returns = {
  13. buffer = {
  14. type = 'Buffer',
  15. description = 'The buffer.'
  16. },
  17. offset = {
  18. type = 'number',
  19. description = 'An offset in the buffer where results will be written.'
  20. }
  21. },
  22. variants = {
  23. {
  24. arguments = {},
  25. returns = { 'buffer', 'offset' }
  26. }
  27. },
  28. related = {
  29. 'Pass:beginTally',
  30. 'Pass:finishTally'
  31. }
  32. }