bgfx/3rdparty/glsl-optimizer/tests/fragment/tex2dlod-ir.txt
Branimir Karadzic dee3fe5266 Initial commit.
2012-04-03 20:30:07 -07:00

42 lines
752 B
Text

#extension GL_ARB_shader_texture_lod : enable
varying vec4 xlv_TEXCOORD0;
uniform sampler2D tex;
vec4 xll_tex2Dlod (
in sampler2D s,
in vec4 coord
)
{
vec4 tmpvar_1;
tmpvar_1 = texture2DLod (s, coord.xy, coord.w);
return tmpvar_1;
}
vec4 xlat_main (
in vec4 uv
)
{
vec4 tmpvar_1;
tmpvar_1.zw = vec2(0.0, 0.0);
tmpvar_1.xy = uv.xy.xy;
vec4 tmpvar_2;
tmpvar_2 = xll_tex2Dlod (tex, tmpvar_1);
return tmpvar_2;
}
void main ()
{
vec4 xl_retval;
vec4 tmpvar_1;
tmpvar_1 = xlv_TEXCOORD0.xyzw;
vec4 tmpvar_2;
tmpvar_2 = xlat_main (tmpvar_1);
vec4 tmpvar_3;
tmpvar_3 = tmpvar_2;
xl_retval = tmpvar_3;
vec4 tmpvar_4;
tmpvar_4 = xl_retval.xyzw;
vec4 tmpvar_5;
tmpvar_5 = tmpvar_4;
gl_FragData[0] = tmpvar_5;
}