1uniform half4 color; 2 3half add(half a, half b) { 4 half c = a + b; 5 return c; 6} 7 8half mul(half a, half b) { 9 return a * b; 10} 11 12half fma(half a, half b, half c) { 13 return add(mul(a, b), c); 14} 15 16half4 main(float2 coords) { 17 half a = fma(color.x, color.y, color.z); 18 half b = fma(color.y, color.z, color.w); 19 half c = fma(color.z, color.w, color.x); 20 return half4(a, b, mul(c, c), mul(a, mul(b, c))); 21} 22