{{newin (日本語)|[[11.0 (日本語)|11.0]]|110|type=関数}}
Validates shader code. Check if specified shader code does not contain any errors.

== 関数 ==
=== 概要 ===
<source lang="lua">
status, message = love.graphics.validateShader( gles, code )
</source>
=== 引数 ===
{{param (日本語)|boolean|gles|Validate code as GLSL ES shader.}}
{{param (日本語)|string|code|The pixel shader or vertex shader code, or a filename pointing to a file with the code.}}
=== 返値 ===
{{param (日本語)|boolean|status|<code>true</code> if specified shader code doesn't contain any errors. <code>false</code> otherwise.}}
{{param (日本語)|string|message|Reason why shader code validation failed (or <code>nil</code> if validation succeded).}}

== 関数 ==
=== 概要 ===
<source lang="lua">
status, message = love.graphics.validateShader( gles, pixelcode, vertexcode )
</source>
=== 引数 ===
{{param (日本語)|boolean|gles|Validate code as GLSL ES shader.}}
{{param (日本語)|string|pixelcode|The pixel shader code, or a filename pointing to a file with the code.}}
{{param (日本語)|string|vertexcode|The vertex shader code, or a filename pointing to a file with the code.}}
=== 返値 ===
{{param (日本語)|boolean|status|<code>true</code> if specified shader code doesn't contain any errors. <code>false</code> otherwise.}}
{{param (日本語)|string|message|Reason why shader code validation failed (or <code>nil</code> if validation succeded).}}

== 関連 ==
* [[parent::love.graphics (日本語)]]
* [[love.graphics.newShader (日本語)]]
[[Category:Functions (日本語)]]
[[Sub-Category::Object Creation (日本語)| ]]
{{#set:Description=Validates shader code.}}

== そのほかの言語 ==
{{i18n (日本語)|love.graphics.validateShader}}