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

24 lines
354 B
Text
Raw Normal View History

2012-04-03 23:30:07 -04:00
struct v2f {
float f;
};
varying float var;
void main ()
{
2012-10-07 23:41:18 -04:00
v2f i2_1;
v2f i_2;
2012-04-03 23:30:07 -04:00
float tmpvar_3;
2012-10-07 23:41:18 -04:00
tmpvar_3 = var;
i_2.f = tmpvar_3;
v2f tmpvar_4;
tmpvar_4 = i_2;
i2_1 = tmpvar_4;
float tmpvar_5;
tmpvar_5 = abs (i2_1.f);
vec4 tmpvar_6;
tmpvar_6 = vec4(tmpvar_5);
vec4 tmpvar_7;
tmpvar_7 = tmpvar_6;
gl_FragColor = tmpvar_7;
2012-04-03 23:30:07 -04:00
}