setSupersample.lua 638 B

12345678910111213141516171819202122232425
  1. return {
  2. summary = 'Set the supersample mode of the layer.',
  3. description = [[
  4. Sets the supersample mode for the layer. 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. supersampled = {
  10. type = 'boolean',
  11. description = 'Whether supersampling should be enabled.'
  12. }
  13. },
  14. returns = {},
  15. variants = {
  16. {
  17. arguments = { 'supersampled' },
  18. returns = {}
  19. }
  20. },
  21. related = {
  22. 'Layer:getSharpen',
  23. 'Layer:setSharpen'
  24. }
  25. }