BlockType.lua 835 B

1234567891011121314151617181920212223242526272829
  1. return {
  2. summary = 'Different types of ShaderBlocks.',
  3. description = [[
  4. There are two types of ShaderBlocks that can be used: `uniform` and `compute`.
  5. Uniform blocks are read only in shaders, can sometimes be a bit faster than compute blocks, and
  6. have a limited size (but the limit will be at least 16KB, you can check
  7. `lovr.graphics.getLimits` to check).
  8. Compute blocks can be written to by compute shaders, might be slightly slower than uniform
  9. blocks, and have a much, much larger maximum size.
  10. ]],
  11. values = {
  12. {
  13. name = 'uniform',
  14. description = 'A uniform block.'
  15. },
  16. {
  17. name = 'compute',
  18. description = 'A compute block.'
  19. }
  20. },
  21. related = {
  22. 'ShaderBlock',
  23. 'lovr.graphics.newShaderBlock',
  24. 'ShaderBlock:getType',
  25. 'lovr.graphics.getLimits'
  26. }
  27. }