bgfx/3rdparty/glsl-optimizer/tests/fragment/opt-deadcodestruct-ir.txt
Branimir Karadzic dee3fe5266 Initial commit.
2012-04-03 20:30:07 -07:00

24 lines
359 B
Text

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;
}