You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// expected-error@-1 {{too many arguments to function call, expected 3, have 4}}
18
19
}
20
+
21
+
inttest_int_scalar_inputs(intp0) {
22
+
return__builtin_spirv_smoothstep(p0, p0, p0);
23
+
// expected-error@-1 {{passing 'int' to parameter of incompatible type 'float'}}
24
+
}
25
+
26
+
floattest_mismatched_arg(floatp0, float2p1) {
27
+
return__builtin_spirv_smoothstep(p0, p1, p1);
28
+
// expected-error@-1 {{all arguments to '__builtin_spirv_smoothstep' must have the same type}}
29
+
}
30
+
31
+
floattest_mismatched_arg2(floatp0, float2p1) {
32
+
return__builtin_spirv_smoothstep(p0, p0, p1);
33
+
// expected-error@-1 {{all arguments to '__builtin_spirv_smoothstep' must have the same type}}
34
+
}
35
+
36
+
floattest_mismatched_return(float2p0) {
37
+
return__builtin_spirv_smoothstep(p0, p0, p0);
38
+
// expected-error@-1 {{returning 'float2' (vector of 2 'float' values) from a function with incompatible result type 'float'}}
39
+
}
40
+
41
+
float3test_mismatched_return2(float2p0) {
42
+
return__builtin_spirv_smoothstep(p0, p0, p0);
43
+
// expected-error@-1 {{returning 'float2' (vector of 2 'float' values) from a function with incompatible result type 'float3' (vector of 3 'float' values)}}
0 commit comments