bgfx/3rdparty/glsl-optimizer/tests/fragment/struct-array-var-index-ir.txt
2012-10-07 20:41:18 -07:00

26 lines
410 B
Text

struct str {
float params[3];
};
void main ()
{
int i_1;
str s_2;
int tmpvar_3;
tmpvar_3 = 0;
i_1 = tmpvar_3;
while (true) {
if (!((i_1 < 3))) {
break;
};
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;
};
vec4 tmpvar_6;
tmpvar_6 = vec4(0.0, 0.0, 0.0, 0.0);
gl_FragColor = tmpvar_6;
}