mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-06-19 21:13:30 +00:00
This CL removes the EntryPoint node and transitions everything to the stage decoration. Change-Id: Ib2840155905c8fa60ff35870f0c4b6705efb73ff Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/28705 Commit-Queue: dan sinclair <dsinclair@chromium.org> Reviewed-by: David Neto <dneto@google.com> Reviewed-by: Sarah Mashayekhi <sarahmashay@google.com>
16 lines
277 B
WebGPU Shading Language
16 lines
277 B
WebGPU Shading Language
# v-switch04: line 9: a literal value must not appear more than once in the case selectors for a
|
|
# switch statement: '0'
|
|
|
|
[[stage(vertex)]]
|
|
fn main() -> void {
|
|
var a: u32 = 2;
|
|
switch (a) {
|
|
case 10u: {}
|
|
case 10u: {}
|
|
case 10u: {}
|
|
default: {}
|
|
}
|
|
return;
|
|
}
|
|
|