2023-01-06 02:25:06 +00:00
|
|
|
[numthreads(1, 1, 1)]
|
|
|
|
void unused_entry_point() {
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
2023-05-03 15:30:54 +00:00
|
|
|
groupshared int a;
|
|
|
|
|
|
|
|
int tint_workgroupUniformLoad_a() {
|
2023-01-06 02:25:06 +00:00
|
|
|
GroupMemoryBarrierWithGroupSync();
|
2023-05-03 15:30:54 +00:00
|
|
|
const int result = a;
|
2023-01-06 02:25:06 +00:00
|
|
|
GroupMemoryBarrierWithGroupSync();
|
|
|
|
return result;
|
|
|
|
}
|
|
|
|
|
|
|
|
groupshared int b;
|
|
|
|
|
2023-05-03 15:30:54 +00:00
|
|
|
int tint_workgroupUniformLoad_b() {
|
|
|
|
GroupMemoryBarrierWithGroupSync();
|
|
|
|
const int result = b;
|
|
|
|
GroupMemoryBarrierWithGroupSync();
|
|
|
|
return result;
|
|
|
|
}
|
|
|
|
|
2023-01-06 02:25:06 +00:00
|
|
|
void foo() {
|
|
|
|
{
|
|
|
|
int i = 0;
|
|
|
|
while (true) {
|
|
|
|
const int tint_symbol = i;
|
2023-05-03 15:30:54 +00:00
|
|
|
const int tint_symbol_1 = tint_workgroupUniformLoad_a();
|
2023-01-06 02:25:06 +00:00
|
|
|
if (!((tint_symbol < tint_symbol_1))) {
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
{
|
|
|
|
}
|
|
|
|
{
|
|
|
|
const int tint_symbol_2 = i;
|
2023-05-03 15:30:54 +00:00
|
|
|
const int tint_symbol_3 = tint_workgroupUniformLoad_b();
|
2023-01-06 02:25:06 +00:00
|
|
|
i = (tint_symbol_2 + tint_symbol_3);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|