bgfx/3rdparty/glsl-optimizer/tests/vertex/loops-forsimple-ir.txt

32 lines
536 B
Text
Raw Normal View History

2012-04-03 23:30:07 -04:00
varying vec4 varColor;
uniform vec4 uniColors[4];
void main ()
{
int i;
vec4 col;
vec4 tmpvar_1;
tmpvar_1 = gl_Vertex;
gl_Position = tmpvar_1;
vec4 tmpvar_2;
tmpvar_2 = vec4(0.0, 0.0, 0.0, 0.0);
col = tmpvar_2;
int tmpvar_3;
tmpvar_3 = 0;
i = tmpvar_3;
while (true) {
if (!((i < 4))) {
break;
};
vec4 tmpvar_4;
tmpvar_4 = (col + uniColors[i]);
col = tmpvar_4;
int tmpvar_5;
tmpvar_5 = (i + 1);
i = tmpvar_5;
};
vec4 tmpvar_6;
tmpvar_6 = col;
varColor = tmpvar_6;
}