24 lines
545 B
GLSL
24 lines
545 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. default is not yet supported in a case selector list.
|
|
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;
|
|
}
|