getFeatures.lua 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. return {
  2. tag = 'window',
  3. summary = 'Check if certain features are supported.',
  4. description = [[
  5. Returns whether certain features are supported by the system\'s graphics card.
  6. ]],
  7. arguments = {},
  8. returns = {
  9. {
  10. name = 'features',
  11. type = 'table',
  12. description = 'A table of features and whether or not they are supported.',
  13. table = {
  14. {
  15. name = 'astc',
  16. type = 'boolean',
  17. description = 'Whether ASTC textures are supported.'
  18. },
  19. {
  20. name = 'compute',
  21. type = 'boolean',
  22. description = 'Whether compute shaders are available.'
  23. },
  24. {
  25. name = 'dxt',
  26. type = 'boolean',
  27. description = 'Whether DXT (.dds) textures are supported.'
  28. },
  29. {
  30. name = 'instancedstereo',
  31. type = 'boolean',
  32. description = 'True if the instanced single-pass stereo rendering method is supported.'
  33. },
  34. {
  35. name = 'multiview',
  36. type = 'boolean',
  37. description = 'True if the multiview single-pass stereo rendering method is supported.'
  38. },
  39. {
  40. name = 'timers',
  41. type = 'boolean',
  42. description = 'Whether `lovr.graphics.tick` and `lovr.graphics.tock` are supported.'
  43. }
  44. }
  45. }
  46. },
  47. related = {
  48. 'lovr.graphics.getLimits'
  49. }
  50. }