UniformAccess.lua 780 B

1234567891011121314151617181920212223
  1. return {
  2. summary = 'Different access hints for shader resources.',
  3. description = [[
  4. When binding writable resources to shaders using `Shader:sendBlock` and `Shader:sendImage`, an
  5. access pattern can be specified as a hint that says whether you plan to read or write to the
  6. resource (or both). Sometimes, LÖVR or the GPU driver can use this hint to get better
  7. performance or avoid stalling.
  8. ]],
  9. values = {
  10. {
  11. name = 'read',
  12. description = 'The Shader will use the resource in a read-only fashion.'
  13. },
  14. {
  15. name = 'write',
  16. description = 'The Shader will use the resource in a write-only fashion.'
  17. },
  18. {
  19. name = 'readwrite',
  20. description = 'The resource will be available for reading and writing.'
  21. }
  22. }
  23. }