bgfx/3rdparty/glsl-optimizer/tests/vertex/opt-inline-varnames-in.txt

17 lines
273 B
Text
Raw Normal View History

2012-04-03 23:30:07 -04:00
float foo (float a, float b, float c) {
return a+b+c;
}
float bar (float a, float b) {
float c = a*b;
return foo (a, b, c);
}
float har (float a) {
float b = sqrt(a);
float c = sqrt(b);
return bar (a, b) + c;
}
void main ()
{
gl_Position = vec4(har(gl_Vertex.x));
}