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

23 lines
354 B
Text

struct v2f {
float f;
};
varying float var;
void main ()
{
v2f i2_1;
v2f i_2;
float tmpvar_3;
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;
}