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

25 lines
359 B
Text
Raw Normal View History

2012-04-03 23:30:07 -04:00
struct foo {
float used;
float unused;
};
void main ()
{
foo s;
float f;
float tmpvar_1;
tmpvar_1 = 1.0;
f = tmpvar_1;
float tmpvar_2;
tmpvar_2 = f;
s.used = tmpvar_2;
float tmpvar_3;
tmpvar_3 = f;
s.unused = tmpvar_3;
vec4 tmpvar_4;
tmpvar_4 = vec4(s.used);
vec4 tmpvar_5;
tmpvar_5 = tmpvar_4;
gl_FragColor = tmpvar_5;
}