dawn-cmake/test/tint/statements/switch/fallthrough.wgsl.expected.f...

21 lines
492 B
HLSL
Raw Permalink Normal View History

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;
^^^^^^^^^^^
[numthreads(1, 1, 1)]
void f() {
int i = 0;
switch(i) {
case 0: {
/* fallthrough */
{
break;
}
}
default: {
break;
}
}
return;
}