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

17 lines
311 B
Text
Raw Normal View History

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