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 bool v;
|
|
|
|
|
|
|
|
bool tint_workgroupUniformLoad_v() {
|
2023-01-06 02:25:06 +00:00
|
|
|
GroupMemoryBarrierWithGroupSync();
|
2023-05-03 15:30:54 +00:00
|
|
|
const bool result = v;
|
2023-01-06 02:25:06 +00:00
|
|
|
GroupMemoryBarrierWithGroupSync();
|
|
|
|
return result;
|
|
|
|
}
|
|
|
|
|
|
|
|
int foo() {
|
2023-05-03 15:30:54 +00:00
|
|
|
if (tint_workgroupUniformLoad_v()) {
|
2023-01-06 02:25:06 +00:00
|
|
|
return 42;
|
|
|
|
}
|
|
|
|
return 0;
|
|
|
|
}
|