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

16 lines
303 B
Text

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;
}