{{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.

== 関数 ==
=== 概要 ===
<source lang="lua">
hasuniform = Shader:hasUniform( name )
</source>
=== 引数 ===
{{param (日本語)|string|name|The name of the uniform variable.}}
=== 返値 ===
{{param (日本語)|boolean|hasuniform|Whether the uniform exists in the shader and affects its final output.}}
== 関連 ==
* [[parent::Shader (日本語)]]
* [[Shader:send (日本語)]]
[[Category:Functions (日本語)]]
{{#set:Description=Gets whether a uniform / extern variable exists in the Shader.}}
== そのほかの言語 ==
{{i18n (日本語)|Shader:hasUniform}}