bgfx/3rdparty/glsl-optimizer/tests/fragment/opt-deadcodestruct-ir.txt
2012-10-07 20:41:18 -07:00

24 lines
375 B
Text

struct foo {
float used;
float unused;
};
void main ()
{
foo s_1;
float f_2;
float tmpvar_3;
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;
}