Available since LÖVE 11.0
It has replaced Shader:getExternVariable.
Gets whether a uniform / extern variable exists in the Shader.
If a graphics driver's shader compiler determines that a uniform / extern variable doesn't affect the final output of the shader, it may optimize the variable out. This function will return false in that case.
hasuniform = Shader:hasUniform( name )
string nameboolean hasuniform
© 2006–2020 LÖVE Development Team
Licensed under the GNU Free Documentation License, Version 1.3.
https://love2d.org/wiki/Shader:hasUniform