Texture:getDimensions

Returns the dimensions of the Texture.

width, height, depth = Texture:getDimensions(mipmap)

Arguments

NameTypeDefaultDescription
mipmapnumber1The mipmap level to get the dimensions of.

Returns

NameTypeDescription
widthnumberThe width of the Texture, in pixels.
heightnumberThe height of the Texture, in pixels.
depthnumberThe number of images stored in the Texture, for non-2D textures.

See also