Texture:getLayerCount

Returns the layer count of the Texture. 2D textures always have 1 layer and cubemaps always have 6 layers. 3D and array textures have a variable number of layers.

layers = Texture:getLayerCount()

Arguments

None

Returns

NameTypeDescription
layersnumber The layer count of the Texture.

See also