mesa/src/compiler/glsl/tests/warnings/031-__-in-function-name.vert
Ian Romanick 011abfc963 glsl: Add warning tests for identifiers with __
Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Matt Turner <mattst88@gmail.com>
2018-11-08 10:59:53 -08:00

22 lines
256 B
GLSL

#version 130
float __foo(float x)
{
return 6.0 * x;
}
float __bar(float x)
{
return 3.0 * x;
}
float __blat(float x)
{
return 2.0 * x;
}
void main()
{
gl_Position = vec4(__foo(gl_Vertex.x), __bar(gl_Vertex.y), __blat(gl_Vertex.z), 1.0);
}