bgfx/3rdparty/glsl-optimizer/tests/fragment/struct-array-var-index-ir.txt

27 lines
410 B
Text
Raw Normal View History

2012-04-03 23:30:07 -04:00
struct str {
float params[3];
};
void main ()
{
2012-10-07 23:41:18 -04:00
int i_1;
str s_2;
int tmpvar_3;
tmpvar_3 = 0;
i_1 = tmpvar_3;
2012-04-03 23:30:07 -04:00
while (true) {
2012-10-07 23:41:18 -04:00
if (!((i_1 < 3))) {
2012-04-03 23:30:07 -04:00
break;
};
2012-10-07 23:41:18 -04:00
float tmpvar_4;
tmpvar_4 = 1.0;
s_2.params[i_1] = tmpvar_4;
int tmpvar_5;
tmpvar_5 = (i_1 + 1);
i_1 = tmpvar_5;
2012-04-03 23:30:07 -04:00
};
2012-10-07 23:41:18 -04:00
vec4 tmpvar_6;
tmpvar_6 = vec4(0.0, 0.0, 0.0, 0.0);
gl_FragColor = tmpvar_6;
2012-04-03 23:30:07 -04:00
}