Gets the depth of a Volume Texture. Returns 1 for 2D, Cubemap, and Array textures.
depth = Texture:getDepth( )
None.
number depth