dawn-cmake/test
Sarah Mashayekhi aff58c6cac [validation] add cts tests for switch
This CL adds wgsl tests for the following rules:
v-switch01: switch statement selector expression must be of a scalar integer type
v-0008: switch statement must have exactly one default clause
v-switch03: the case selector values must have the same type as the selector expression the case selectors for a switch statement
v-switch04: a literal value must not appear more than once in the case selectors for a switch statement
v-switch05: a fallthrough statement must not appear as the last statement in last clause of a switch

Bug: tint: 6
Change-Id: Ia12b7d13d47b01e970a5a1e58d61ef05dd9f3830
Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/28320
Commit-Queue: David Neto <dneto@google.com>
Reviewed-by: David Neto <dneto@google.com>
2020-09-10 14:55:17 +00:00
..
compute_boids.wgsl [wgsl-reader] Add stride support. 2020-07-30 16:50:25 +00:00
cube.wgsl Add missing block decoration. 2020-08-18 16:08:43 +00:00
function-must-be-declared-before-use-fail.wgsl [type-determiner] return false when type determining an undeclared function 2020-08-18 02:10:03 +00:00
function.wgsl [metal-writer] Emit constructors. 2020-06-23 18:22:21 +00:00
simple.wgsl Add return to simple test 2020-07-22 13:41:04 +00:00
switch-case-selector-must-have-the-same-type-as-the-selector-expression-2.fail.wgsl [validation] add cts tests for switch 2020-09-10 14:55:17 +00:00
switch-case-selector-must-have-the-same-type-as-the-selector-expression.fail.wgsl [validation] add cts tests for switch 2020-09-10 14:55:17 +00:00
switch-case-selector-value-must-be-unique.fail.wgsl [validation] add cts tests for switch 2020-09-10 14:55:17 +00:00
switch-fallthrough-must-not-be-last-stmt-of-last-clause.fail.wgsl [validation] add cts tests for switch 2020-09-10 14:55:17 +00:00
switch-must-have-exactly-one-default-clause-2.fail.wgsl [validation] add cts tests for switch 2020-09-10 14:55:17 +00:00
switch-must-have-exactly-one-default-clause.fail.wgsl [validation] add cts tests for switch 2020-09-10 14:55:17 +00:00
switch-selector-expression-must-be-scalar-integer-type.fail.wgsl [validation] add cts tests for switch 2020-09-10 14:55:17 +00:00
triangle.wgsl Fix triangle.wgsl's floating point literals. 2020-08-24 13:04:36 +00:00
undefined-variable-global-scope.wgsl [Validation] v-0006: variables must be defined before use 2020-08-06 21:24:14 +00:00
undefined-variable-inner-block.wgsl [Validation] v-0006: variables must be defined before use 2020-08-06 21:24:14 +00:00