mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-05-14 19:31:25 +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>
16 lines
472 B
WebGPU Shading Language
16 lines
472 B
WebGPU Shading Language
[[stage(compute), workgroup_size(1)]]
|
|
fn main() {
|
|
ignore(isNormal(vec4<f32>()));
|
|
ignore(isNormal(vec4<f32>(1.0)));
|
|
ignore(isNormal(vec4<f32>(1.0, 2.0, 3.0, 4.0)));
|
|
ignore(isNormal(vec3<f32>()));
|
|
ignore(isNormal(vec3<f32>(1.0)));
|
|
ignore(isNormal(vec3<f32>(1.0, 2.0, 3.0)));
|
|
ignore(isNormal(vec2<f32>()));
|
|
ignore(isNormal(vec2<f32>(1.0)));
|
|
ignore(isNormal(vec2<f32>(1.0, 2.0)));
|
|
ignore(isNormal(1.0));
|
|
ignore(isNormal(2.0));
|
|
ignore(isNormal(3.0));
|
|
}
|