dawn-cmake/test/loops/loop_with_continuing.wgsl.e...

18 lines
193 B
HLSL
Raw Normal View History

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