BufferUsage.lua 621 B

123456789101112131415161718192021222324
  1. return {
  2. summary = 'How the buffer data will be updated.',
  3. description = [[
  4. This acts as a hint to the graphics driver about what kinds of data access should be optimized for.
  5. ]],
  6. values = {
  7. {
  8. name = 'static',
  9. description = 'A buffer that you intend to create once and never modify.'
  10. },
  11. {
  12. name = 'dynamic',
  13. description = 'A buffer which is modified occasionally.'
  14. },
  15. {
  16. name = 'stream',
  17. description = 'A buffer which is entirely replaced on the order of every frame.'
  18. }
  19. },
  20. related = {
  21. 'ShaderBlock',
  22. 'lovr.graphics.newShaderBlock',
  23. }
  24. }