init.lua 674 B

1234567891011121314151617181920212223242526
  1. return {
  2. summary = 'A multidimensional block of memory on the GPU.',
  3. description = [[
  4. Textures are multidimensional blocks of memory on the GPU, contrasted with `Buffer` objects
  5. which are one-dimensional. Textures are used as the destination for rendering operations, and
  6. textures loaded from images provide surface data to `Material` objects.
  7. ]],
  8. constructors = {
  9. 'lovr.graphics.newTexture',
  10. 'Texture:newView'
  11. },
  12. sections = {
  13. {
  14. name = 'Metadata',
  15. tag = 'texture-metadata'
  16. },
  17. {
  18. name = 'Transfers',
  19. tag = 'texture-transfer'
  20. },
  21. {
  22. name = 'Texture Views',
  23. tag = 'texture-view'
  24. }
  25. }
  26. }