bgfx/3rdparty/glsl-optimizer/tests/fragment/prec-default-outES.txt

33 lines
602 B
Text
Raw Normal View History

2013-03-17 14:29:03 -04:00
precision lowp int;
precision highp float;
2014-02-11 02:06:13 -05:00
struct MyStruct {
float f;
int i;
};
uniform MyStruct s1;
2013-03-17 14:29:03 -04:00
uniform float fh1;
2014-02-11 02:06:13 -05:00
uniform highp float fh2;
uniform mediump float fm;
uniform int il1;
uniform int il2;
uniform int im;
2013-03-17 14:29:03 -04:00
void main ()
{
int i_1;
lowp float f_2;
highp float tmpvar_3;
2014-02-11 02:06:13 -05:00
tmpvar_3 = (((fh1 + fh2) + fm) + s1.f);
2013-03-17 14:29:03 -04:00
f_2 = tmpvar_3;
int tmpvar_4;
2014-02-11 02:06:13 -05:00
tmpvar_4 = (((il1 + il2) + im) + s1.i);
2013-03-17 14:29:03 -04:00
i_1 = tmpvar_4;
highp vec4 tmpvar_5;
tmpvar_5.zw = vec2(0.0, 0.0);
tmpvar_5.x = f_2;
tmpvar_5.y = float(i_1);
gl_FragColor = tmpvar_5;
}
2014-02-11 02:06:13 -05:00
// inputs: 0, stats: 8 alu 0 tex 0 flow