getSampleCount.lua 652 B

1234567891011121314151617181920212223242526
  1. return {
  2. tag = 'texture-metadata',
  3. summary = 'Get the number of MSAA samples in the Texture.',
  4. description = [[
  5. Returns the number of samples in the texture. Multiple samples are used for multisample
  6. antialiasing when rendering to the texture. Currently, the sample count is either 1 (not
  7. antialiased) or 4 (antialiased).
  8. ]],
  9. arguments = {},
  10. returns = {
  11. samples = {
  12. type = 'number',
  13. description = 'The number of samples in the Texture.'
  14. }
  15. },
  16. variants = {
  17. {
  18. arguments = {},
  19. returns = { 'samples' }
  20. }
  21. },
  22. related = {
  23. 'lovr.graphics.newTexture',
  24. 'Pass:getSampleCount'
  25. }
  26. }