Shader:hasStage
Available since LÖVE 12.0 |
This function is not supported in earlier versions. |
Gets whether the Shader was created with the given shader stage.
This can be used to query whether the Shader is a compute shader or not.
Function
Synopsis
hasstage = Shader:hasStage( stage )
Arguments
ShaderStage stage
- The shader stage to check for.
Returns
boolean hasstage
- Whether the Shader has the shader stage.
See Also
Other Languages
Dansk –
Deutsch –
English –
Español –
Français –
Indonesia –
Italiano –
Lietuviškai –
Magyar –
Nederlands –
Polski –
Português –
Română –
Slovenský –
Suomi –
Svenska –
Türkçe –
Česky –
Ελληνικά –
Български –
Русский –
Српски –
Українська –
עברית –
ไทย –
日本語 –
正體中文 –
简体中文 –
Tiếng Việt –
한국어
More info