Difference between revisions of "Shader:isValid"

From GiderosMobile
m (Text replacement - "<source" to "<syntaxhighlight")
m (Text replacement - "</source>" to "</syntaxhighlight>")
Line 7: Line 7:
 
<syntaxhighlight lang="lua">
 
<syntaxhighlight lang="lua">
 
(boolean) = Shader:isValid()
 
(boolean) = Shader:isValid()
</source>
+
</syntaxhighlight>
 
=== <translate>Return values</translate> ===
 
=== <translate>Return values</translate> ===
 
'''<translate>Returns</translate>''' (boolean) <translate>true if this shader is valid</translate><br/>
 
'''<translate>Returns</translate>''' (boolean) <translate>true if this shader is valid</translate><br/>
  
 
{{Shader}}
 
{{Shader}}

Revision as of 14:32, 13 July 2023


Available since: Gideros 2015.06.30
Class: Shader

Description

Check if this shader object was compiled successfully and is actually usable.

(boolean) = Shader:isValid()

Return values

Returns (boolean) true if this shader is valid