bgfx/3rdparty/glsl-optimizer/tests/fragment/derivatives-irES.txt

256 lines
5 KiB
Text
Raw Normal View History

2012-04-03 23:30:07 -04:00
#extension GL_OES_standard_derivatives : enable
varying highp vec4 xlv_TEXCOORD0;
2014-03-29 19:26:01 -04:00
mediump float xll_dFdx (
in mediump float f_1
2012-04-03 23:30:07 -04:00
)
{
2014-03-29 19:26:01 -04:00
mediump float tmpvar_2;
2012-10-07 23:41:18 -04:00
tmpvar_2 = dFdx (f_1);
return tmpvar_2;
2012-04-03 23:30:07 -04:00
}
2014-03-29 19:26:01 -04:00
mediump vec2 xll_dFdx (
in mediump vec2 v_3
2012-04-03 23:30:07 -04:00
)
{
2014-03-29 19:26:01 -04:00
mediump vec2 tmpvar_4;
2012-10-07 23:41:18 -04:00
tmpvar_4 = dFdx (v_3);
return tmpvar_4;
2012-04-03 23:30:07 -04:00
}
2014-03-29 19:26:01 -04:00
mediump vec3 xll_dFdx (
in mediump vec3 v_5
2012-04-03 23:30:07 -04:00
)
{
2014-03-29 19:26:01 -04:00
mediump vec3 tmpvar_6;
2012-10-07 23:41:18 -04:00
tmpvar_6 = dFdx (v_5);
return tmpvar_6;
2012-04-03 23:30:07 -04:00
}
2014-03-29 19:26:01 -04:00
mediump vec4 xll_dFdx (
in mediump vec4 v_7
2012-04-03 23:30:07 -04:00
)
{
2014-03-29 19:26:01 -04:00
mediump vec4 tmpvar_8;
2012-10-07 23:41:18 -04:00
tmpvar_8 = dFdx (v_7);
return tmpvar_8;
2012-04-03 23:30:07 -04:00
}
2014-03-29 19:26:01 -04:00
mediump mat2 xll_dFdx (
in mediump mat2 m_9
2012-04-03 23:30:07 -04:00
)
{
2014-03-29 19:26:01 -04:00
mediump vec2 tmpvar_10;
2012-10-07 23:41:18 -04:00
tmpvar_10 = dFdx (m_9[0]);
2014-03-29 19:26:01 -04:00
mediump vec2 tmpvar_11;
2012-10-07 23:41:18 -04:00
tmpvar_11 = dFdx (m_9[1]);
2014-03-29 19:26:01 -04:00
mediump mat2 tmpvar_12;
mediump vec2 tmpvar_13;
2012-10-07 23:41:18 -04:00
tmpvar_13 = tmpvar_10;
tmpvar_12[0] = tmpvar_13;
2014-03-29 19:26:01 -04:00
mediump vec2 tmpvar_14;
2012-10-07 23:41:18 -04:00
tmpvar_14 = tmpvar_11;
tmpvar_12[1] = tmpvar_14;
return tmpvar_12;
2012-04-03 23:30:07 -04:00
}
2014-03-29 19:26:01 -04:00
mediump mat3 xll_dFdx (
in mediump mat3 m_15
2012-04-03 23:30:07 -04:00
)
{
2014-03-29 19:26:01 -04:00
mediump vec3 tmpvar_16;
2012-10-07 23:41:18 -04:00
tmpvar_16 = dFdx (m_15[0]);
2014-03-29 19:26:01 -04:00
mediump vec3 tmpvar_17;
2012-10-07 23:41:18 -04:00
tmpvar_17 = dFdx (m_15[1]);
2014-03-29 19:26:01 -04:00
mediump vec3 tmpvar_18;
2012-10-07 23:41:18 -04:00
tmpvar_18 = dFdx (m_15[2]);
2014-03-29 19:26:01 -04:00
mediump mat3 tmpvar_19;
mediump vec3 tmpvar_20;
2012-10-07 23:41:18 -04:00
tmpvar_20 = tmpvar_16;
tmpvar_19[0] = tmpvar_20;
2014-03-29 19:26:01 -04:00
mediump vec3 tmpvar_21;
2012-10-07 23:41:18 -04:00
tmpvar_21 = tmpvar_17;
tmpvar_19[1] = tmpvar_21;
2014-03-29 19:26:01 -04:00
mediump vec3 tmpvar_22;
2012-10-07 23:41:18 -04:00
tmpvar_22 = tmpvar_18;
tmpvar_19[2] = tmpvar_22;
return tmpvar_19;
2012-04-03 23:30:07 -04:00
}
2014-03-29 19:26:01 -04:00
mediump mat4 xll_dFdx (
in mediump mat4 m_23
2012-04-03 23:30:07 -04:00
)
{
2014-03-29 19:26:01 -04:00
mediump vec4 tmpvar_24;
2012-10-07 23:41:18 -04:00
tmpvar_24 = dFdx (m_23[0]);
2014-03-29 19:26:01 -04:00
mediump vec4 tmpvar_25;
2012-10-07 23:41:18 -04:00
tmpvar_25 = dFdx (m_23[1]);
2014-03-29 19:26:01 -04:00
mediump vec4 tmpvar_26;
2012-10-07 23:41:18 -04:00
tmpvar_26 = dFdx (m_23[2]);
2014-03-29 19:26:01 -04:00
mediump vec4 tmpvar_27;
2012-10-07 23:41:18 -04:00
tmpvar_27 = dFdx (m_23[3]);
2014-03-29 19:26:01 -04:00
mediump mat4 tmpvar_28;
mediump vec4 tmpvar_29;
2012-10-07 23:41:18 -04:00
tmpvar_29 = tmpvar_24;
tmpvar_28[0] = tmpvar_29;
2014-03-29 19:26:01 -04:00
mediump vec4 tmpvar_30;
2012-10-07 23:41:18 -04:00
tmpvar_30 = tmpvar_25;
tmpvar_28[1] = tmpvar_30;
2014-03-29 19:26:01 -04:00
mediump vec4 tmpvar_31;
2012-10-07 23:41:18 -04:00
tmpvar_31 = tmpvar_26;
tmpvar_28[2] = tmpvar_31;
2014-03-29 19:26:01 -04:00
mediump vec4 tmpvar_32;
2012-10-07 23:41:18 -04:00
tmpvar_32 = tmpvar_27;
tmpvar_28[3] = tmpvar_32;
return tmpvar_28;
2012-04-03 23:30:07 -04:00
}
2014-03-29 19:26:01 -04:00
mediump float xll_fwidth (
in mediump float f_33
2012-04-03 23:30:07 -04:00
)
{
2014-03-29 19:26:01 -04:00
mediump float tmpvar_34;
2012-10-07 23:41:18 -04:00
tmpvar_34 = fwidth (f_33);
return tmpvar_34;
2012-04-03 23:30:07 -04:00
}
2014-03-29 19:26:01 -04:00
mediump vec2 xll_fwidth (
in mediump vec2 v_35
2012-04-03 23:30:07 -04:00
)
{
2014-03-29 19:26:01 -04:00
mediump vec2 tmpvar_36;
2012-10-07 23:41:18 -04:00
tmpvar_36 = fwidth (v_35);
return tmpvar_36;
2012-04-03 23:30:07 -04:00
}
2014-03-29 19:26:01 -04:00
mediump vec3 xll_fwidth (
in mediump vec3 v_37
2012-04-03 23:30:07 -04:00
)
{
2014-03-29 19:26:01 -04:00
mediump vec3 tmpvar_38;
2012-10-07 23:41:18 -04:00
tmpvar_38 = fwidth (v_37);
return tmpvar_38;
2012-04-03 23:30:07 -04:00
}
2014-03-29 19:26:01 -04:00
mediump vec4 xll_fwidth (
in mediump vec4 v_39
2012-04-03 23:30:07 -04:00
)
{
2014-03-29 19:26:01 -04:00
mediump vec4 tmpvar_40;
2012-10-07 23:41:18 -04:00
tmpvar_40 = fwidth (v_39);
return tmpvar_40;
2012-04-03 23:30:07 -04:00
}
2014-03-29 19:26:01 -04:00
mediump mat2 xll_fwidth (
in mediump mat2 m_41
2012-04-03 23:30:07 -04:00
)
{
2014-03-29 19:26:01 -04:00
mediump vec2 tmpvar_42;
2012-10-07 23:41:18 -04:00
tmpvar_42 = fwidth (m_41[0]);
2014-03-29 19:26:01 -04:00
mediump vec2 tmpvar_43;
2012-10-07 23:41:18 -04:00
tmpvar_43 = fwidth (m_41[1]);
2014-03-29 19:26:01 -04:00
mediump mat2 tmpvar_44;
mediump vec2 tmpvar_45;
2012-10-07 23:41:18 -04:00
tmpvar_45 = tmpvar_42;
tmpvar_44[0] = tmpvar_45;
2014-03-29 19:26:01 -04:00
mediump vec2 tmpvar_46;
2012-10-07 23:41:18 -04:00
tmpvar_46 = tmpvar_43;
tmpvar_44[1] = tmpvar_46;
return tmpvar_44;
2012-04-03 23:30:07 -04:00
}
2014-03-29 19:26:01 -04:00
mediump mat3 xll_fwidth (
in mediump mat3 m_47
2012-04-03 23:30:07 -04:00
)
{
2014-03-29 19:26:01 -04:00
mediump vec3 tmpvar_48;
2012-10-07 23:41:18 -04:00
tmpvar_48 = fwidth (m_47[0]);
2014-03-29 19:26:01 -04:00
mediump vec3 tmpvar_49;
2012-10-07 23:41:18 -04:00
tmpvar_49 = fwidth (m_47[1]);
2014-03-29 19:26:01 -04:00
mediump vec3 tmpvar_50;
2012-10-07 23:41:18 -04:00
tmpvar_50 = fwidth (m_47[2]);
2014-03-29 19:26:01 -04:00
mediump mat3 tmpvar_51;
mediump vec3 tmpvar_52;
2012-10-07 23:41:18 -04:00
tmpvar_52 = tmpvar_48;
tmpvar_51[0] = tmpvar_52;
2014-03-29 19:26:01 -04:00
mediump vec3 tmpvar_53;
2012-10-07 23:41:18 -04:00
tmpvar_53 = tmpvar_49;
tmpvar_51[1] = tmpvar_53;
2014-03-29 19:26:01 -04:00
mediump vec3 tmpvar_54;
2012-10-07 23:41:18 -04:00
tmpvar_54 = tmpvar_50;
tmpvar_51[2] = tmpvar_54;
return tmpvar_51;
2012-04-03 23:30:07 -04:00
}
2014-03-29 19:26:01 -04:00
mediump mat4 xll_fwidth (
in mediump mat4 m_55
2012-04-03 23:30:07 -04:00
)
{
2014-03-29 19:26:01 -04:00
mediump vec4 tmpvar_56;
2012-10-07 23:41:18 -04:00
tmpvar_56 = fwidth (m_55[0]);
2014-03-29 19:26:01 -04:00
mediump vec4 tmpvar_57;
2012-10-07 23:41:18 -04:00
tmpvar_57 = fwidth (m_55[1]);
2014-03-29 19:26:01 -04:00
mediump vec4 tmpvar_58;
2012-10-07 23:41:18 -04:00
tmpvar_58 = fwidth (m_55[2]);
2014-03-29 19:26:01 -04:00
mediump vec4 tmpvar_59;
2012-10-07 23:41:18 -04:00
tmpvar_59 = fwidth (m_55[3]);
2014-03-29 19:26:01 -04:00
mediump mat4 tmpvar_60;
mediump vec4 tmpvar_61;
2012-10-07 23:41:18 -04:00
tmpvar_61 = tmpvar_56;
tmpvar_60[0] = tmpvar_61;
2014-03-29 19:26:01 -04:00
mediump vec4 tmpvar_62;
2012-10-07 23:41:18 -04:00
tmpvar_62 = tmpvar_57;
tmpvar_60[1] = tmpvar_62;
2014-03-29 19:26:01 -04:00
mediump vec4 tmpvar_63;
2012-10-07 23:41:18 -04:00
tmpvar_63 = tmpvar_58;
tmpvar_60[2] = tmpvar_63;
2014-03-29 19:26:01 -04:00
mediump vec4 tmpvar_64;
2012-10-07 23:41:18 -04:00
tmpvar_64 = tmpvar_59;
tmpvar_60[3] = tmpvar_64;
return tmpvar_60;
2012-04-03 23:30:07 -04:00
}
mediump vec4 xlat_main (
2012-10-07 23:41:18 -04:00
in highp vec4 uv_65
2012-04-03 23:30:07 -04:00
)
{
2012-10-07 23:41:18 -04:00
lowp vec4 res_66;
2014-03-29 19:26:01 -04:00
mediump float tmpvar_67;
2012-10-07 23:41:18 -04:00
tmpvar_67 = xll_dFdx (uv_65.x);
2014-03-29 19:26:01 -04:00
mediump float tmpvar_68;
2012-10-07 23:41:18 -04:00
tmpvar_68 = tmpvar_67;
res_66.x = tmpvar_68;
2014-03-29 19:26:01 -04:00
mediump float tmpvar_69;
2012-10-07 23:41:18 -04:00
tmpvar_69 = xll_dFdx (uv_65.y);
2014-03-29 19:26:01 -04:00
mediump float tmpvar_70;
2012-10-07 23:41:18 -04:00
tmpvar_70 = tmpvar_69;
res_66.y = vec2(tmpvar_70).y;
2014-03-29 19:26:01 -04:00
mediump float tmpvar_71;
2012-10-07 23:41:18 -04:00
tmpvar_71 = xll_fwidth (uv_65.z);
2014-03-29 19:26:01 -04:00
mediump float tmpvar_72;
2012-10-07 23:41:18 -04:00
tmpvar_72 = tmpvar_71;
res_66.z = vec3(tmpvar_72).z;
2014-03-29 19:26:01 -04:00
mediump float tmpvar_73;
2012-10-07 23:41:18 -04:00
tmpvar_73 = 1.0;
res_66.w = vec4(tmpvar_73).w;
return res_66;
2012-04-03 23:30:07 -04:00
}
void main ()
{
2012-10-07 23:41:18 -04:00
mediump vec4 xl_retval_74;
highp vec4 tmpvar_75;
tmpvar_75 = xlv_TEXCOORD0.xyzw;
mediump vec4 tmpvar_76;
tmpvar_76 = xlat_main (tmpvar_75);
mediump vec4 tmpvar_77;
tmpvar_77 = tmpvar_76;
xl_retval_74 = tmpvar_77;
mediump vec4 tmpvar_78;
tmpvar_78 = xl_retval_74.xyzw;
mediump vec4 tmpvar_79;
tmpvar_79 = tmpvar_78;
gl_FragData[0] = tmpvar_79;
2012-04-03 23:30:07 -04:00
}