bgfx/3rdparty/glsl-optimizer/tests/vertex/opt-inline-varnames-in.txt
Branimir Karadzic dee3fe5266 Initial commit.
2012-04-03 20:30:07 -07:00

16 lines
273 B
Text

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));
}