{{newinoldin|[[0.9.2]]|092|[[11.0]]|110|type=function|text=It has been replaced by [[Shader:hasUniform]]}}
Gets information about an 'extern' ('uniform') variable in the shader.

Returns nil if the variable name doesn't exist in the shader, or if the video driver's shader compiler has determined that the variable doesn't affect the final output of the shader.

== 関数 ==
=== 概要 ===
<source lang="lua">
type, components, arrayelements = Shader:getExternVariable( name )
</source>
=== 引数 ===
{{param (日本語)|string|name|The name of the extern variable.}}
=== 返値 ===
{{param (日本語)|ShaderVariableType|type (nil)|The base type of the variable.}}
{{param (日本語)|number|components (nil)|The number of components in the variable (e.g. 2 for a vec2 or mat2.)}}
{{param (日本語)|number|arrayelements (nil)|The number of elements in the array if the variable is an array, or 1 if not.}}
== 関連 ==
* [[parent::Shader (日本語)]]
* [[Shader:send (日本語)]]
[[Category:Functions (日本語)]]
{{#set:Description=Gets information about an 'extern' ('uniform') variable in the Shader.}}
== そのほかの言語 ==
{{i18n (日本語)|Shader:getExternVariable}}