Difference between revisions of "Shader.getShaderLanguage"

From GiderosMobile
 
(8 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
__NOTOC__
 
__NOTOC__
'''<translate>Available since</translate>:''' Gideros 2016.08<br/>
+
'''Available since:''' Gideros 2016.08<br/>
'''<translate>Class</translate>:''' [[Special:MyLanguage/Shader|Shader]]<br/>
+
'''Class:''' [[Shader]]<br/>
=== <translate>Description</translate> ===
+
 
<translate>Get shader language, returns string with values as: glsl or hlsl</translate>
+
=== Description ===
<source lang="lua">
+
Gets the shader language. Returns a string with values as: '''glsl''', '''msl''' or '''hlsl'''.
Shader:getShaderLanguage()
+
<syntaxhighlight lang="lua">
</source>
+
Shader.getShaderLanguage()
 +
</syntaxhighlight>
 +
 
 +
=== Return values ===
 +
'''Returns''' (string) the current shader language<br/>
 +
 
 +
{{Shader}}

Latest revision as of 23:48, 3 November 2023

Available since: Gideros 2016.08
Class: Shader

Description

Gets the shader language. Returns a string with values as: glsl, msl or hlsl.

Shader.getShaderLanguage()

Return values

Returns (string) the current shader language