init.lua 967 B

12345678910111213141516171819202122232425262728293031
  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. description = [[
  25. Textures can be created as "views" of another parent texture. Views don't store any pixels
  26. themselves, but instead refer to a subset of the parent's layers or mipmap levels. They can
  27. also use a different texture type from the parent.
  28. ]]
  29. }
  30. }
  31. }