SKIP: FAILED | |
RWByteAddressBuffer buffer : register(u0); | |
void foo() { | |
{ | |
int i = 0; | |
while(true) { | |
if ((i < 4)) { | |
} else { | |
break; | |
} | |
switch(asint(buffer.Load((0u + (uint(i) * 4u))))) { | |
case 1: | |
{ | |
{ | |
i = (i + 1); | |
} | |
continue; | |
} | |
default: | |
{ | |
uint v = (0u + (uint(i) * 4u)); | |
buffer.Store(v, asuint(2)); | |
break; | |
} | |
} | |
{ | |
i = (i + 1); | |
} | |
continue; | |
} | |
} | |
} | |
void main() { | |
foo(); | |
} | |
FXC validation failure: | |
<scrubbed_path>(17,11-19): error X3708: continue cannot be used in a switch | |
tint executable returned error: exit status 1 |