2022-03-05 00:39:14 +00:00
|
|
|
// Check that for backends that generate builtin helpers, repeated use of the
|
|
|
|
// same builtin overload results in single helper being generated.
|
2022-06-07 13:55:34 +00:00
|
|
|
@compute @workgroup_size(1)
|
2021-07-15 20:34:21 +00:00
|
|
|
fn main() {
|
2022-08-01 17:21:54 +00:00
|
|
|
let a = degrees(vec4<f32>());
|
|
|
|
let b = degrees(vec4<f32>(1.));
|
|
|
|
let c = degrees(vec4<f32>(1., 2., 3., 4.));
|
2021-07-15 20:34:21 +00:00
|
|
|
|
2022-08-01 17:21:54 +00:00
|
|
|
let d = degrees(vec3<f32>());
|
|
|
|
let e = degrees(vec3<f32>(1.));
|
|
|
|
let f = degrees(vec3<f32>(1., 2., 3.));
|
2021-07-15 20:34:21 +00:00
|
|
|
|
2022-08-01 17:21:54 +00:00
|
|
|
let g = degrees(vec2<f32>());
|
|
|
|
let h = degrees(vec2<f32>(1.));
|
|
|
|
let i = degrees(vec2<f32>(1., 2.));
|
2021-07-15 20:34:21 +00:00
|
|
|
|
2022-08-01 17:21:54 +00:00
|
|
|
let j = degrees(1.);
|
|
|
|
let k = degrees(2.);
|
|
|
|
let l = degrees(3.);
|
2021-07-15 20:34:21 +00:00
|
|
|
}
|