bgfx/3rdparty/glsl-optimizer/tests/fragment/swizzle-writemask-ir.txt

17 lines
303 B
Text
Raw Normal View History

2012-04-03 23:30:07 -04:00
void main ()
{
vec4 c;
float tmpvar_1;
tmpvar_1 = dot (gl_FragCoord.xyz, vec3(1.0, 2.0, 3.0));
float tmpvar_2;
tmpvar_2 = tmpvar_1;
c.x = tmpvar_2;
vec3 tmpvar_3;
tmpvar_3 = vec3(4.0, 5.0, 6.0);
c.yzw = tmpvar_3.xxyz.yzw;
vec4 tmpvar_4;
tmpvar_4 = c;
gl_FragColor = tmpvar_4;
}