getLimits.lua 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. return {
  2. tag = 'window',
  3. summary = 'Get capabilities of the graphics card.',
  4. description = [[
  5. Returns information about the maximum limits 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 = 'anisotropy',
  17. type = 'number',
  18. description = 'The maximum anisotropy value supported by `Texture:setFilter`.'
  19. },
  20. {
  21. name = 'blocksize',
  22. type = 'number',
  23. description = 'The maximum size of a uniform ShaderBlock, in bytes.'
  24. },
  25. {
  26. name = 'pointsize',
  27. type = 'number',
  28. description = 'The maximum size of points, in pixels.'
  29. },
  30. {
  31. name = 'texturemsaa',
  32. type = 'number',
  33. description = 'The maximum MSAA value supported by `lovr.graphics.newTexture`.'
  34. },
  35. {
  36. name = 'texturesize',
  37. type = 'number',
  38. description = 'The maximum width or height of textures, in pixels.'
  39. },
  40. {
  41. name = 'compute',
  42. type = 'table',
  43. description = [[
  44. A table of three numbers indicating the maximum number of compute threads that can be
  45. run with `lovr.graphics.compute`.
  46. ]]
  47. }
  48. }
  49. }
  50. },
  51. related = {
  52. 'lovr.graphics.getFeatures'
  53. }
  54. }