blob: 4d2195e57eff3536314fe12d8a3bbb753b4bf502 [file] [log] [blame]
// Expect 24 errors
uniform shader s;
uniform colorFilter f;
uniform blender b;
uniform float2 xy;
uniform half4 color;
half4 sample_shader_xy_color() { return sample(s, xy, color); }
half4 sample_shader_color() { return sample(s, color); }
half4 sample_shader_color_xy() { return sample(s, color, xy); }
half4 sample_shader_empty() { return sample(s); }
half4 sample_shader_matrix() { return sample(s, float3x3(1)); }
half4 sample_colorFilter_empty() { return sample(f); }
half4 sample_colorFilter_xy() { return sample(f, xy); }
half4 sample_colorFilter_xy_color() { return sample(f, xy, color); }
half4 sample_blender_empty() { return sample(b); }
half4 sample_blender_color() { return sample(b, color); }
half4 sample_blender_xy() { return sample(b, xy); }
half4 sample_blender_xy_color() { return sample(b, xy, color); }
// Using .eval()
half4 eval_shader_xy_color() { return s.eval(xy, color); }
half4 eval_shader_color() { return s.eval(color); }
half4 eval_shader_color_xy() { return s.eval(color, xy); }
half4 eval_shader_empty() { return s.eval(); }
half4 eval_shader_matrix() { return s.eval(float3x3(1)); }
half4 eval_colorFilter_empty() { return f.eval(); }
half4 eval_colorFilter_xy() { return f.eval(xy); }
half4 eval_colorFilter_xy_color() { return f.eval(xy, color); }
half4 eval_blender_empty() { return b.eval(); }
half4 eval_blender_color() { return b.eval(color); }
half4 eval_blender_xy() { return b.eval(xy); }
half4 eval_blender_xy_color() { return b.eval(xy, color); }
// Correct usage (EXPECT NO ERRORS)
half4 eval_blender() { return b.eval(color, color); }
half4 eval_colorFilter() { return f.eval(color); }
half4 eval_shader() { return s.eval(xy); }