mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-05-13 19:01:24 +00:00
Bug: tint:833 Bug: tint:914 Change-Id: Ieb34c734ad08c632c8d4e6152d856ec28f35cf85 Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/55249 Kokoro: Kokoro <noreply+kokoro@google.com> Reviewed-by: David Neto <dneto@google.com> Commit-Queue: Ben Clayton <bclayton@google.com>
27 lines
315 B
HLSL
27 lines
315 B
HLSL
[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;
|
|
}
|