getSystemLimits.lua 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. return {
  2. tag = 'graphicsState',
  3. summary = 'Get capabilities of the graphics card.',
  4. description = [[
  5. Returns information about the capabilities of the graphics card, such as the maximum texture
  6. size or the amount of supported antialiasing.
  7. ]],
  8. arguments = {},
  9. returns = {
  10. {
  11. name = 'limits',
  12. type = 'table',
  13. description = 'The table of limits.',
  14. table = {
  15. {
  16. name = 'pointsize',
  17. type = 'number',
  18. description = 'The maximum size of points, in pixels.'
  19. },
  20. {
  21. name = 'texturesize',
  22. type = 'number',
  23. description = 'The maximum width or height of textures, in pixels.'
  24. },
  25. {
  26. name = 'texturemsaa',
  27. type = 'number',
  28. description = 'The maximum MSAA value supported by `lovr.graphics.newTexture`.'
  29. },
  30. {
  31. name = 'anisotropy',
  32. type = 'number',
  33. description = 'The maximum anisotropy value supported by `Texture:setFilter`.'
  34. }
  35. }
  36. }
  37. }
  38. }