1 2out vec4 sk_FragColor; 3uniform vec4 colorRed; 4uniform vec4 colorGreen; 5struct S { 6 float i; 7 float j; 8}; 9vec4 main() { 10 vec4 x = vec4(3.0, 2.0, 1.0, 0.0); 11 x.xyz = x.zyx; 12 S s; 13 s.i = 2.0; 14 s.j = 2.0; 15 s.i = s.j; 16 s.j = s.i; 17 float a[2]; 18 a[0] = 1.0; 19 a[1] = 0.0; 20 a[1] = a[0]; 21 return vec4(x.w, s.i / s.j, a[0] - a[1], a[0] * a[1]); 22} 23