[Tint] Hacky fix for binding numbers in tests
Due to the way the MSL backend handles generating binding numbers with
the Tint exe, these slight changes are necessary to satisfy the
follow-up test fixes which will split out vertex entry point tests for
some builtins. This change has been separated into a separate CL due to
the size of the diff in generated files.
Only test/tint/builtins/gen/gen.wgsl.tmpl has been manually modified.
The other changes were created with:
./tools/run gen
./tools/run tests --generate-expected
Bug: 344846829
Change-Id: I8ecadda930b805a2b9bc171fba0ad461bd5149e9
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/195477
Commit-Queue: Natalie Chouinard <chouinard@google.com>
Reviewed-by: dan sinclair <dsinclair@chromium.org>
diff --git a/test/tint/builtins/gen/literal/determinant/fc12a5.wgsl b/test/tint/builtins/gen/literal/determinant/fc12a5.wgsl
index d427bbc..b801c2d 100644
--- a/test/tint/builtins/gen/literal/determinant/fc12a5.wgsl
+++ b/test/tint/builtins/gen/literal/determinant/fc12a5.wgsl
@@ -40,13 +40,14 @@
enable f16;
+@group(0) @binding(0) var<storage, read_write> prevent_dce : f16;
+
+
// fn determinant(mat<2, 2, f16>) -> f16
fn determinant_fc12a5() -> f16{
var res: f16 = determinant(mat2x2<f16>(1.h, 1.h, 1.h, 1.h));
return res;
}
-@group(0) @binding(0) var<storage, read_write> prevent_dce : f16;
-
@fragment
fn fragment_main() {
prevent_dce = determinant_fc12a5();