dawn-cmake/test/loops/nested_loops_with_continuin...

27 lines
315 B
HLSL
Raw Normal View History

[numthreads(1, 1, 1)]
void unused_entry_point() {
return;
}
int f() {
int i = 0;
int j = 0;
while (true) {
if ((i > 4)) {
return 1;
}
while (true) {
if ((j > 4)) {
return 2;
}
{
j = (j + 1);
}
}
{
i = (i + 1);
}
}
return 0;
}