{{newin|[[11.0]]|110|type=function|text=It has replaced [[Shader:getExternVariable]]}}
Gets whether a uniform / extern variable exists in the Shader.

If a graphics driver's shader compiler determines that a uniform / extern variable doesn't affect the final output of the shader, it may optimize the variable out. This function will return false in that case.

== Function ==
=== Synopsis ===
<source lang="lua">
hasuniform = Shader:hasUniform( name )
</source>
=== Arguments ===
{{param|string|name|The name of the uniform variable.}}
=== Returns ===
{{param|boolean|hasuniform|Whether the uniform exists in the shader and affects its final output.}}
== See Also ==
* [[parent::Shader]]
* [[Shader:send]]
[[Category:Functions]]
{{#set:Description=Gets whether a uniform / extern variable exists in the Shader.}}
== Other Languages ==
{{i18n|Shader:hasUniform}}