mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-05-14 03:11:29 +00:00
Much like sem::Type, it greatly simplifies downstream logic if we can compare sem::Intrinsic pointers to know if they refer to the same intrinsic overload. Change-Id: If236247cd3979bbde821d9294f304ab85ba4938e Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/58061 Kokoro: Kokoro <noreply+kokoro@google.com> Reviewed-by: David Neto <dneto@google.com>
21 lines
633 B
WebGPU Shading Language
21 lines
633 B
WebGPU Shading Language
// Check that for backends that generate intrinsic helpers, repeated use of the
|
|
// same intrinsic overload results in single helper being generated.
|
|
[[stage(compute), workgroup_size(1)]]
|
|
fn main() {
|
|
ignore(isNormal(vec4<f32>()));
|
|
ignore(isNormal(vec4<f32>(1.)));
|
|
ignore(isNormal(vec4<f32>(1., 2., 3., 4.)));
|
|
|
|
ignore(isNormal(vec3<f32>()));
|
|
ignore(isNormal(vec3<f32>(1.)));
|
|
ignore(isNormal(vec3<f32>(1., 2., 3.)));
|
|
|
|
ignore(isNormal(vec2<f32>()));
|
|
ignore(isNormal(vec2<f32>(1.)));
|
|
ignore(isNormal(vec2<f32>(1., 2.)));
|
|
|
|
ignore(isNormal(1.));
|
|
ignore(isNormal(2.));
|
|
ignore(isNormal(3.));
|
|
}
|