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