mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-07-05 12:46:11 +00:00
The `default` case selector has been implemented in Tint. This CL updates the deprecation notice with that fact along with some more information on replacements. Bug: tint:1644 Change-Id: I883b4465d11d9696d46523d11e66c9a2dc2777ac Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/106460 Kokoro: Kokoro <noreply+kokoro@google.com> Reviewed-by: Antonio Maiorano <amaiorano@google.com> Auto-Submit: Dan Sinclair <dsinclair@chromium.org> Commit-Queue: Dan Sinclair <dsinclair@chromium.org>
24 lines
582 B
GLSL
24 lines
582 B
GLSL
statements/switch/fallthrough.wgsl:6:13 warning: use of deprecated language feature: fallthrough is set to be removed from WGSL. Case can accept multiple selectors if the existing case bodies are empty. (e.g. `case 1, 2, 3:`) `default` is a valid case selector value. (e.g. `case 1, default:`)
|
|
fallthrough;
|
|
^^^^^^^^^^^
|
|
|
|
#version 310 es
|
|
|
|
void f() {
|
|
int i = 0;
|
|
switch(i) {
|
|
case 0: {
|
|
/* fallthrough */
|
|
}
|
|
default: {
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
|
|
layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
|
|
void main() {
|
|
f();
|
|
return;
|
|
}
|