dawn-cmake/test
Antonio Maiorano cea744d558 Move Switch validation from Validator to Resolver
* Formerly, we reported the same error message if we detected no default
clause or more than one. I made it so that we output a different error
message for each. This makes it more clear, and in the case of more than
one, the error source location points at the second default clause,
rather than at the switch statement.

* Add functions to ProgramBuilder to more easily define switch and case
statements.

* Fix broken tests as a result of this change.

Bug: tint:642
Change-Id: Iab4e610a563165862d9bc190772d32a4dd24ac45
Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/45880
Kokoro: Kokoro <noreply+kokoro@google.com>
Reviewed-by: Ben Clayton <bclayton@google.com>
Commit-Queue: Antonio Maiorano <amaiorano@google.com>
2021-03-25 12:55:27 +00:00
..
BUILD.gn Move Switch validation from Validator to Resolver 2021-03-25 12:55:27 +00:00
compute_boids.wgsl Fix test/compute_builds.wgsl 2021-03-17 18:43:53 +00:00
cube.wgsl Implement Default Struct Layout 2021-03-15 10:43:11 +00:00
function.wgsl Update comments in test WGSL files. 2021-01-12 18:13:28 +00:00
simple.wgsl Update comments in test WGSL files. 2021-01-12 18:13:28 +00:00
test-all.sh Add test/test-all.sh 2021-03-17 18:49:03 +00:00
triangle.wgsl Update builtin idx names. 2021-01-18 15:51:13 +00:00