getTarget.lua 549 B

12345678910111213141516171819202122232425
  1. return {
  2. deprecated = true,
  3. tag = 'canvas',
  4. summary = 'Get the textures a render pass is rendering to.',
  5. description = 'Returns the textures a render pass is rendering to.',
  6. arguments = {},
  7. returns = {
  8. target = {
  9. type = 'table',
  10. description = [[
  11. A table of the color textures targeted by the pass, with an additional `depth` key if the
  12. pass has a depth texture.
  13. ]]
  14. }
  15. },
  16. variants = {
  17. {
  18. arguments = {},
  19. returns = { 'target' }
  20. }
  21. },
  22. related = {
  23. 'Pass:getClear'
  24. }
  25. }