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-03-05 00:39:14 +00:00
|
|
|
_ = degrees(vec4<f32>());
|
|
|
|
_ = degrees(vec4<f32>(1.));
|
|
|
|
_ = degrees(vec4<f32>(1., 2., 3., 4.));
|
2021-07-15 20:34:21 +00:00
|
|
|
|
2022-03-05 00:39:14 +00:00
|
|
|
_ = degrees(vec3<f32>());
|
|
|
|
_ = degrees(vec3<f32>(1.));
|
|
|
|
_ = degrees(vec3<f32>(1., 2., 3.));
|
2021-07-15 20:34:21 +00:00
|
|
|
|
2022-03-05 00:39:14 +00:00
|
|
|
_ = degrees(vec2<f32>());
|
|
|
|
_ = degrees(vec2<f32>(1.));
|
|
|
|
_ = degrees(vec2<f32>(1., 2.));
|
2021-07-15 20:34:21 +00:00
|
|
|
|
2022-03-05 00:39:14 +00:00
|
|
|
_ = degrees(1.);
|
|
|
|
_ = degrees(2.);
|
|
|
|
_ = degrees(3.);
|
2021-07-15 20:34:21 +00:00
|
|
|
}
|