• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// Expect 12 errors
2
3uniform shader      s;
4uniform colorFilter f;
5uniform blender     b;
6
7uniform float2 xy;
8uniform half4  color;
9
10half4 eval_shader_xy_color() { return s.eval(xy, color); }
11half4 eval_shader_color()    { return s.eval(color); }
12half4 eval_shader_color_xy() { return s.eval(color, xy); }
13half4 eval_shader_empty()    { return s.eval(); }
14half4 eval_shader_matrix()   { return s.eval(float3x3(1)); }
15
16half4 eval_colorFilter_empty()    { return f.eval(); }
17half4 eval_colorFilter_xy()       { return f.eval(xy); }
18half4 eval_colorFilter_xy_color() { return f.eval(xy, color); }
19
20half4 eval_blender_empty()    { return b.eval(); }
21half4 eval_blender_color()    { return b.eval(color); }
22half4 eval_blender_xy()       { return b.eval(xy); }
23half4 eval_blender_xy_color() { return b.eval(xy, color); }
24
25// Correct usage (EXPECT NO ERRORS)
26
27half4 eval_blender() { return b.eval(color, color); }
28half4 eval_colorFilter() { return f.eval(color); }
29half4 eval_shader() { return s.eval(xy); }
30