mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-05-31 11:41:35 +00:00
Some pass DXC, but not FXC (e.g. continue_in_switch). Some now pass (e.g intrinsics/gen/atan2/*.hlsl) Some now fail gracefully instead of asserting (e.g. 807.spv) Change-Id: I92b17fcadc7850de5bd93ff07507cea7e5487fc9 Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/68820 Kokoro: Kokoro <noreply+kokoro@google.com> Reviewed-by: Ben Clayton <bclayton@chromium.org> Commit-Queue: Antonio Maiorano <amaiorano@google.com>
22 lines
356 B
HLSL
22 lines
356 B
HLSL
SKIP: FAILED
|
|
|
|
[numthreads(1, 1, 1)]
|
|
void f() {
|
|
{
|
|
for(int i = 0; (i < 4); i = (i + 1)) {
|
|
switch(i) {
|
|
case 0: {
|
|
continue;
|
|
break;
|
|
}
|
|
default: {
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
return;
|
|
}
|
|
C:\src\tint\test\Shader@0x000001C513B5E750(7,11-19): error X3708: continue cannot be used in a switch
|
|
|