mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-05-14 19:31:25 +00:00
FXC does not support fallthrough case statements (DXC does). Fixed: tint:1082 Change-Id: I82e1add5455e438056259f773f34bf9db05970b4 Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/60480 Kokoro: Kokoro <noreply+kokoro@google.com> Commit-Queue: Ben Clayton <bclayton@chromium.org> Auto-Submit: Ben Clayton <bclayton@google.com> Reviewed-by: David Neto <dneto@google.com>
25 lines
256 B
HLSL
25 lines
256 B
HLSL
static uint var_1 = 0u;
|
|
|
|
void main_1() {
|
|
switch(42u) {
|
|
case 20u: {
|
|
/* fallthrough */
|
|
{
|
|
}
|
|
break;
|
|
}
|
|
case 30u: {
|
|
break;
|
|
}
|
|
default: {
|
|
break;
|
|
}
|
|
}
|
|
return;
|
|
}
|
|
|
|
void main() {
|
|
main_1();
|
|
return;
|
|
}
|