bgfx/3rdparty/glsl-optimizer/tests/fragment/intrinsics-out.txt

105 lines
2.5 KiB
Text
Raw Normal View History

2012-04-03 23:30:07 -04:00
varying vec4 xlv_TEXCOORD0;
void main ()
{
2012-10-07 23:41:18 -04:00
vec4 c_1;
c_1 = vec4(0.0, 0.0, 0.0, 0.0);
2012-04-03 23:30:07 -04:00
float tmpvar_2;
2012-10-07 23:41:18 -04:00
tmpvar_2 = (xlv_TEXCOORD0.x / 2.0);
2012-04-03 23:30:07 -04:00
float tmpvar_3;
2012-10-07 23:41:18 -04:00
tmpvar_3 = (fract(abs(tmpvar_2)) * 2.0);
float tmpvar_4;
if ((tmpvar_2 >= 0.0)) {
tmpvar_4 = tmpvar_3;
2012-04-03 23:30:07 -04:00
} else {
2012-10-07 23:41:18 -04:00
tmpvar_4 = -(tmpvar_3);
2012-04-03 23:30:07 -04:00
};
2012-10-07 23:41:18 -04:00
c_1.x = tmpvar_4;
2012-04-03 23:30:07 -04:00
vec2 tmpvar_5;
2012-10-07 23:41:18 -04:00
tmpvar_5 = (xlv_TEXCOORD0.xy / vec2(2.0, 2.0));
vec2 tmpvar_6;
tmpvar_6 = (fract(abs(tmpvar_5)) * vec2(2.0, 2.0));
2012-04-03 23:30:07 -04:00
float tmpvar_7;
2012-10-07 23:41:18 -04:00
if ((tmpvar_5.x >= 0.0)) {
tmpvar_7 = tmpvar_6.x;
2012-04-03 23:30:07 -04:00
} else {
2012-10-07 23:41:18 -04:00
tmpvar_7 = -(tmpvar_6.x);
2012-04-03 23:30:07 -04:00
};
2012-10-07 23:41:18 -04:00
float tmpvar_8;
if ((tmpvar_5.y >= 0.0)) {
tmpvar_8 = tmpvar_6.y;
2012-04-03 23:30:07 -04:00
} else {
2012-10-07 23:41:18 -04:00
tmpvar_8 = -(tmpvar_6.y);
2012-04-03 23:30:07 -04:00
};
2012-10-07 23:41:18 -04:00
vec2 tmpvar_9;
tmpvar_9.x = tmpvar_7;
tmpvar_9.y = tmpvar_8;
c_1.xy = (c_1.xy + tmpvar_9);
vec3 tmpvar_10;
tmpvar_10 = (xlv_TEXCOORD0.xyz / vec3(2.0, 2.0, 2.0));
vec3 tmpvar_11;
tmpvar_11 = (fract(abs(tmpvar_10)) * vec3(2.0, 2.0, 2.0));
2012-04-03 23:30:07 -04:00
float tmpvar_12;
2012-10-07 23:41:18 -04:00
if ((tmpvar_10.x >= 0.0)) {
tmpvar_12 = tmpvar_11.x;
2012-04-03 23:30:07 -04:00
} else {
2012-10-07 23:41:18 -04:00
tmpvar_12 = -(tmpvar_11.x);
2012-04-03 23:30:07 -04:00
};
float tmpvar_13;
2012-10-07 23:41:18 -04:00
if ((tmpvar_10.y >= 0.0)) {
tmpvar_13 = tmpvar_11.y;
2012-04-03 23:30:07 -04:00
} else {
2012-10-07 23:41:18 -04:00
tmpvar_13 = -(tmpvar_11.y);
2012-04-03 23:30:07 -04:00
};
2012-10-07 23:41:18 -04:00
float tmpvar_14;
if ((tmpvar_10.z >= 0.0)) {
tmpvar_14 = tmpvar_11.z;
2012-04-03 23:30:07 -04:00
} else {
2012-10-07 23:41:18 -04:00
tmpvar_14 = -(tmpvar_11.z);
2012-04-03 23:30:07 -04:00
};
2012-10-07 23:41:18 -04:00
vec3 tmpvar_15;
tmpvar_15.x = tmpvar_12;
tmpvar_15.y = tmpvar_13;
tmpvar_15.z = tmpvar_14;
c_1.xyz = (c_1.xyz + tmpvar_15);
vec4 tmpvar_16;
tmpvar_16 = (xlv_TEXCOORD0 / vec4(2.0, 2.0, 2.0, 2.0));
vec4 tmpvar_17;
tmpvar_17 = (fract(abs(tmpvar_16)) * vec4(2.0, 2.0, 2.0, 2.0));
2012-04-03 23:30:07 -04:00
float tmpvar_18;
2012-10-07 23:41:18 -04:00
if ((tmpvar_16.x >= 0.0)) {
tmpvar_18 = tmpvar_17.x;
2012-04-03 23:30:07 -04:00
} else {
2012-10-07 23:41:18 -04:00
tmpvar_18 = -(tmpvar_17.x);
2012-04-03 23:30:07 -04:00
};
float tmpvar_19;
2012-10-07 23:41:18 -04:00
if ((tmpvar_16.y >= 0.0)) {
tmpvar_19 = tmpvar_17.y;
2012-04-03 23:30:07 -04:00
} else {
2012-10-07 23:41:18 -04:00
tmpvar_19 = -(tmpvar_17.y);
2012-04-03 23:30:07 -04:00
};
float tmpvar_20;
2012-10-07 23:41:18 -04:00
if ((tmpvar_16.z >= 0.0)) {
tmpvar_20 = tmpvar_17.z;
} else {
tmpvar_20 = -(tmpvar_17.z);
};
float tmpvar_21;
if ((tmpvar_16.w >= 0.0)) {
tmpvar_21 = tmpvar_17.w;
2012-04-03 23:30:07 -04:00
} else {
2012-10-07 23:41:18 -04:00
tmpvar_21 = -(tmpvar_17.w);
2012-04-03 23:30:07 -04:00
};
2012-10-07 23:41:18 -04:00
vec4 tmpvar_22;
tmpvar_22.x = tmpvar_18;
tmpvar_22.y = tmpvar_19;
tmpvar_22.z = tmpvar_20;
tmpvar_22.w = tmpvar_21;
c_1 = (c_1 + tmpvar_22);
c_1.x = (c_1.x + (xlv_TEXCOORD0.x - float(int(xlv_TEXCOORD0.x))));
c_1.xy = (c_1.xy + (xlv_TEXCOORD0.xy - vec2(ivec2(xlv_TEXCOORD0.xy))));
c_1.xyz = (c_1.xyz + (xlv_TEXCOORD0.xyz - vec3(ivec3(xlv_TEXCOORD0.xyz))));
c_1 = (c_1 + (xlv_TEXCOORD0 - vec4(ivec4(xlv_TEXCOORD0))));
gl_FragData[0] = c_1;
2012-04-03 23:30:07 -04:00
}