getDepth.lua 480 B

12345678910111213141516171819
  1. return {
  2. summary = 'Get the depth of the Texture.',
  3. description = 'Returns the depth of the Texture, or the number of images stored in the Texture.',
  4. arguments = {
  5. {
  6. name = 'mipmap',
  7. type = 'number',
  8. default = '1',
  9. description = 'The mipmap level to get the depth of. This is only valid for volume textures.'
  10. }
  11. },
  12. returns = {
  13. {
  14. name = 'depth',
  15. type = 'number',
  16. description = 'The depth of the Texture.'
  17. }
  18. }
  19. }