{{newin|[[11.0]]|110|type=function}}
Gets the comparison mode used when sampling from a [[PixelFormat|depth texture]] in a shader.

Depth texture comparison modes are advanced low-level functionality typically used with shadow mapping in 3D.
== Function ==
=== Synopsis ===
<source lang="lua">
compare = Texture:getDepthSampleMode( )
</source>
=== Arguments ===
None.
=== Returns ===
{{param|CompareMode|compare (nil)|The comparison mode used when sampling from this texture in a shader, or nil if setDepthSampleMode has not been called on this Texture.}}
== See Also ==
* [[parent::Texture]]
* [[Texture:setDepthSampleMode]]
* [[love.graphics.newCanvas]]
[[Category:Functions]]
{{#set:Description=Gets the comparison mode used when sampling from a [[PixelFormat|depth texture]] in a shader.}}
== Other Languages ==
{{i18n|Texture:getDepthSampleMode}}