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