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

32 lines
558 B
Text
Raw Normal View History

2012-04-03 23:30:07 -04:00
uniform vec4 uniColors[4];
2014-02-11 02:06:13 -05:00
varying vec4 varColor;
2012-04-03 23:30:07 -04:00
void main ()
{
2012-10-07 23:41:18 -04:00
int i_1;
vec4 col_2;
vec4 tmpvar_3;
tmpvar_3 = gl_Vertex;
gl_Position = tmpvar_3;
vec4 tmpvar_4;
tmpvar_4 = vec4(0.0, 0.0, 0.0, 0.0);
col_2 = tmpvar_4;
int tmpvar_5;
tmpvar_5 = 0;
i_1 = tmpvar_5;
2012-04-03 23:30:07 -04:00
while (true) {
2012-10-07 23:41:18 -04:00
if (!((i_1 < 4))) {
2012-04-03 23:30:07 -04:00
break;
};
2012-10-07 23:41:18 -04:00
vec4 tmpvar_6;
tmpvar_6 = (col_2 + uniColors[i_1]);
col_2 = tmpvar_6;
int tmpvar_7;
tmpvar_7 = (i_1 + 1);
i_1 = tmpvar_7;
2012-04-03 23:30:07 -04:00
};
2012-10-07 23:41:18 -04:00
vec4 tmpvar_8;
tmpvar_8 = col_2;
varColor = tmpvar_8;
2012-04-03 23:30:07 -04:00
}