{{newin|[[11.0]]|110|type=function}}
Gets the number of layers / slices in an [[TextureType|Array Texture]]. Returns 1 for 2D, Cubemap, and Volume textures.
== Function ==
=== Synopsis ===
<source lang="lua">
layers = Texture:getLayerCount( )
</source>
=== Arguments ===
None.
=== Returns ===
{{param|number|layers|The number of layers in the Array Texture.}}
== See Also ==
* [[parent::Texture]]
* [[love.graphics.newArrayImage]]
* [[love.graphics.newCanvas]]
[[Category:Functions]]
{{#set:Description=Gets the number of layers / slices in an [[TextureType|Array Texture]].}}
== Other Languages ==
{{i18n|Texture:getLayerCount}}