Texture:getLayerCount

Edit

Returns the layer count of the Texture. 2D textures always have 1 layer and cubemaps always have a layer count divisible by 6. 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