2021-07-15 20:34:21 +00:00
|
|
|
// Check that for backends that generate intrinsic helpers, repeated use of the
|
|
|
|
// same intrinsic overload results in single helper being generated.
|
2022-01-19 22:46:57 +00:00
|
|
|
@stage(compute) @workgroup_size(1)
|
2021-07-15 20:34:21 +00:00
|
|
|
fn main() {
|
2021-10-22 00:21:44 +00:00
|
|
|
_ = isNormal(vec4<f32>());
|
|
|
|
_ = isNormal(vec4<f32>(1.));
|
|
|
|
_ = isNormal(vec4<f32>(1., 2., 3., 4.));
|
2021-07-15 20:34:21 +00:00
|
|
|
|
2021-10-22 00:21:44 +00:00
|
|
|
_ = isNormal(vec3<f32>());
|
|
|
|
_ = isNormal(vec3<f32>(1.));
|
|
|
|
_ = isNormal(vec3<f32>(1., 2., 3.));
|
2021-07-15 20:34:21 +00:00
|
|
|
|
2021-10-22 00:21:44 +00:00
|
|
|
_ = isNormal(vec2<f32>());
|
|
|
|
_ = isNormal(vec2<f32>(1.));
|
|
|
|
_ = isNormal(vec2<f32>(1., 2.));
|
2021-07-15 20:34:21 +00:00
|
|
|
|
2021-10-22 00:21:44 +00:00
|
|
|
_ = isNormal(1.);
|
|
|
|
_ = isNormal(2.);
|
|
|
|
_ = isNormal(3.);
|
2021-07-15 20:34:21 +00:00
|
|
|
}
|