getViewCount.lua 673 B

1234567891011121314151617181920212223242526
  1. return {
  2. summary = 'Returns the view count of a render pass.',
  3. description = [[
  4. Returns the view count of a render pass. This is the layer count of the textures it is
  5. rendering to.
  6. ]],
  7. arguments = {},
  8. returns = {
  9. {
  10. name = 'views',
  11. type = 'number',
  12. description = 'The view count.'
  13. }
  14. },
  15. notes = [[
  16. A render pass has one "camera" for each view. Whenever something is drawn, it is broadcast to
  17. each view (layer) of each texture, using the corresponding camera.
  18. ]],
  19. related = {
  20. 'Pass:getViewPose',
  21. 'Pass:setViewPose',
  22. 'Pass:getProjection',
  23. 'Pass:setProjection',
  24. 'lovr.headset.getViewCount'
  25. }
  26. }