From 2aa69e1bb2d848e899cda9d5efc547d7c04f62b3 Mon Sep 17 00:00:00 2001 From: Erich Gubler Date: Wed, 28 Aug 2024 17:28:18 -0400 Subject: [PATCH] test(wgsl): note link b/w `cross` and `bad_cross_builtin_args` tests --- naga/tests/in/cross.wgsl | 1 + naga/tests/validation.rs | 1 + 2 files changed, 2 insertions(+) diff --git a/naga/tests/in/cross.wgsl b/naga/tests/in/cross.wgsl index 5dc16fe9f..cfdd7622c 100644 --- a/naga/tests/in/cross.wgsl +++ b/naga/tests/in/cross.wgsl @@ -1,3 +1,4 @@ +// NOTE: invalid combinations are tested in the `validation::bad_cross_builtin_args` test. @compute @workgroup_size(1) fn main() { let a = cross(vec3(0., 1., 2.), vec3(0., 1., 2.)); } diff --git a/naga/tests/validation.rs b/naga/tests/validation.rs index 748057a89..c7af7b4c0 100644 --- a/naga/tests/validation.rs +++ b/naga/tests/validation.rs @@ -264,6 +264,7 @@ fn emit_workgroup_uniform_load_result() { #[cfg(feature = "wgsl-in")] #[test] fn bad_cross_builtin_args() { + // NOTE: Things we expect to actually compile are in the `cross` snapshot test. let cases = [ ( "vec2(0., 1.)",