bgfx/3rdparty/glsl-optimizer/tests/fragment/opt-deadcodestruct-ir.txt

25 lines
375 B
Text
Raw Normal View History

2012-04-03 23:30:07 -04:00
struct foo {
float used;
float unused;
};
void main ()
{
2012-10-07 23:41:18 -04:00
foo s_1;
float f_2;
2012-04-03 23:30:07 -04:00
float tmpvar_3;
2012-10-07 23:41:18 -04:00
tmpvar_3 = 1.0;
f_2 = tmpvar_3;
float tmpvar_4;
tmpvar_4 = f_2;
s_1.used = tmpvar_4;
float tmpvar_5;
tmpvar_5 = f_2;
s_1.unused = tmpvar_5;
vec4 tmpvar_6;
tmpvar_6 = vec4(s_1.used);
vec4 tmpvar_7;
tmpvar_7 = tmpvar_6;
gl_FragColor = tmpvar_7;
2012-04-03 23:30:07 -04:00
}