mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-06-05 06:03:34 +00:00
The `Ignore()` intrinsic is about to be deprecated, so don't use it for testing. Bug: tint:1213 Change-Id: I314ecaeb9a9c337c7b6980189054120a74807ebd Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/67066 Kokoro: Kokoro <noreply+kokoro@google.com> Commit-Queue: Ben Clayton <bclayton@google.com> Reviewed-by: David Neto <dneto@google.com> Reviewed-by: James Price <jrprice@google.com>
16 lines
424 B
WebGPU Shading Language
16 lines
424 B
WebGPU Shading Language
[[stage(compute), workgroup_size(1)]]
|
|
fn main() {
|
|
_ = isNormal(vec4<f32>());
|
|
_ = isNormal(vec4<f32>(1.0));
|
|
_ = isNormal(vec4<f32>(1.0, 2.0, 3.0, 4.0));
|
|
_ = isNormal(vec3<f32>());
|
|
_ = isNormal(vec3<f32>(1.0));
|
|
_ = isNormal(vec3<f32>(1.0, 2.0, 3.0));
|
|
_ = isNormal(vec2<f32>());
|
|
_ = isNormal(vec2<f32>(1.0));
|
|
_ = isNormal(vec2<f32>(1.0, 2.0));
|
|
_ = isNormal(1.0);
|
|
_ = isNormal(2.0);
|
|
_ = isNormal(3.0);
|
|
}
|