getSupersample.lua 634 B

12345678910111213141516171819202122232425
  1. return {
  2. summary = 'Get the supersample mode of the layer.',
  3. description = [[
  4. Returns whether the layer is supersampled. This will improve quality when the layer is rendered
  5. at a smaller size than its texture resolution, at the cost of performance. Supersampling is
  6. currently only supported on Quest devices.
  7. ]],
  8. arguments = {},
  9. returns = {
  10. supersampled = {
  11. type = 'boolean',
  12. description = 'Whether the layer is supersampled.'
  13. }
  14. },
  15. variants = {
  16. {
  17. arguments = {},
  18. returns = { 'supersampled' }
  19. }
  20. },
  21. related = {
  22. 'Layer:getSharpen',
  23. 'Layer:setSharpen'
  24. }
  25. }