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

51 lines
1,019 B
Text

struct v2f {
vec4 pos;
float unusedmember;
};
void main ()
{
float arrunused[3];
float arrused[3];
float funused;
float fused;
v2f sunused;
v2f sused;
float f;
float tmpvar_1;
tmpvar_1 = gl_FragCoord.x;
f = tmpvar_1;
vec4 tmpvar_2;
tmpvar_2 = vec4(f);
vec4 tmpvar_3;
tmpvar_3 = tmpvar_2;
sused.pos = tmpvar_3;
float tmpvar_4;
tmpvar_4 = (f * 6.0);
sused.unusedmember = tmpvar_4;
vec4 tmpvar_5;
tmpvar_5 = vec4(f);
vec4 tmpvar_6;
tmpvar_6 = tmpvar_5;
sunused.pos = tmpvar_6;
float tmpvar_7;
tmpvar_7 = (f * 7.0);
sunused.unusedmember = tmpvar_7;
float tmpvar_8;
tmpvar_8 = (f * 2.0);
fused = tmpvar_8;
float tmpvar_9;
tmpvar_9 = (f * 3.0);
funused = tmpvar_9;
float tmpvar_10;
tmpvar_10 = (f * 4.0);
arrused[0] = tmpvar_10;
float tmpvar_11;
tmpvar_11 = (f * 5.0);
arrunused[0] = tmpvar_11;
vec4 tmpvar_12;
tmpvar_12 = vec4(((fused + sused.pos.x) + arrused[0]));
vec4 tmpvar_13;
tmpvar_13 = tmpvar_12;
gl_FragColor = tmpvar_13;
}