getMipmapCount.lua 515 B

1234567891011121314151617181920212223
  1. return {
  2. tag = 'texture-metadata',
  3. summary = 'Get the number of mipmap levels in the Texture.',
  4. description = 'Returns the number of mipmap levels in the Texture.',
  5. arguments = {},
  6. returns = {
  7. mipmaps = {
  8. type = 'number',
  9. description = 'The number of mipmap levels in the Texture.'
  10. }
  11. },
  12. variants = {
  13. {
  14. arguments = {},
  15. returns = { 'mipmaps' }
  16. }
  17. },
  18. related = {
  19. 'lovr.graphics.newTexture',
  20. 'Sampler:getMipmapRange',
  21. 'Texture:generateMipmaps'
  22. }
  23. }