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-11-21 18:00:01 +00:00
|
|
|
let va = vec4<f32>();
|
|
|
|
let a = degrees(va);
|
|
|
|
let vb = vec4<f32>(1.);
|
|
|
|
let b = degrees(vb);
|
|
|
|
let vc = vec4<f32>(1., 2., 3., 4.);
|
|
|
|
let c = degrees(vc);
|
2021-07-15 20:34:21 +00:00
|
|
|
|
2022-11-21 18:00:01 +00:00
|
|
|
let vd = vec3<f32>();
|
|
|
|
let d = degrees(vd);
|
|
|
|
let ve = vec3<f32>(1.);
|
|
|
|
let e = degrees(ve);
|
|
|
|
let vf = vec3<f32>(1., 2., 3.);
|
|
|
|
let f = degrees(vf);
|
2021-07-15 20:34:21 +00:00
|
|
|
|
2022-11-21 18:00:01 +00:00
|
|
|
let vg = vec2<f32>();
|
|
|
|
let g = degrees(vg);
|
|
|
|
let vh = vec2<f32>(1.);
|
|
|
|
let h = degrees(vh);
|
|
|
|
let vi = vec2<f32>(1., 2.);
|
|
|
|
let i = degrees(vi);
|
2021-07-15 20:34:21 +00:00
|
|
|
|
2022-11-21 18:00:01 +00:00
|
|
|
let vj = 1.;
|
|
|
|
let j = degrees(vj);
|
|
|
|
let vk = 2.;
|
|
|
|
let k = degrees(vk);
|
|
|
|
let vl = 3.;
|
|
|
|
let l = degrees(vl);
|
2021-07-15 20:34:21 +00:00
|
|
|
}
|