2023-01-06 02:25:06 +00:00
|
|
|
#version 310 es
|
|
|
|
|
|
|
|
layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
|
|
|
|
void unused_entry_point() {
|
|
|
|
return;
|
|
|
|
}
|
2023-03-02 20:48:48 +00:00
|
|
|
int tint_workgroupUniformLoad(inout int p) {
|
2023-01-06 02:25:06 +00:00
|
|
|
barrier();
|
2023-03-02 20:48:48 +00:00
|
|
|
int result = p;
|
2023-01-06 02:25:06 +00:00
|
|
|
barrier();
|
|
|
|
return result;
|
|
|
|
}
|
|
|
|
|
2023-03-02 20:48:48 +00:00
|
|
|
shared int a;
|
2023-01-06 02:25:06 +00:00
|
|
|
shared int b;
|
|
|
|
void foo() {
|
|
|
|
{
|
|
|
|
int i = 0;
|
|
|
|
while (true) {
|
|
|
|
int tint_symbol = i;
|
2023-03-02 20:48:48 +00:00
|
|
|
int tint_symbol_1 = tint_workgroupUniformLoad(a);
|
2023-01-06 02:25:06 +00:00
|
|
|
if (!((tint_symbol < tint_symbol_1))) {
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
{
|
|
|
|
}
|
|
|
|
{
|
|
|
|
int tint_symbol_2 = i;
|
2023-03-02 20:48:48 +00:00
|
|
|
int tint_symbol_3 = tint_workgroupUniformLoad(b);
|
2023-01-06 02:25:06 +00:00
|
|
|
i = (tint_symbol_2 + tint_symbol_3);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|