Texture:getDepth

Returns the depth of the Texture, or the number of images stored in the Texture.

depth = Texture:getDepth(mipmap)

Arguments

NameTypeDefaultDescription
mipmapnumber1The mipmap level to get the depth of. This is only valid for volume textures.

Returns

NameTypeDescription
depthnumberThe depth of the Texture.

See also