bgfx/3rdparty/glsl-optimizer/tests/fragment/swizzle-writemask-ir.txt
2012-10-07 20:41:18 -07:00

17 lines
311 B
Plaintext

void main ()
{
vec4 c_1;
float tmpvar_2;
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;
}