2023-01-06 02:25:06 +00:00
|
|
|
[numthreads(1, 1, 1)]
|
|
|
|
void unused_entry_point() {
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
2023-03-02 20:48:48 +00:00
|
|
|
bool tint_workgroupUniformLoad(inout bool p) {
|
2023-01-06 02:25:06 +00:00
|
|
|
GroupMemoryBarrierWithGroupSync();
|
2023-03-02 20:48:48 +00:00
|
|
|
const bool result = p;
|
2023-01-06 02:25:06 +00:00
|
|
|
GroupMemoryBarrierWithGroupSync();
|
|
|
|
return result;
|
|
|
|
}
|
|
|
|
|
2023-03-02 20:48:48 +00:00
|
|
|
groupshared bool v;
|
|
|
|
|
2023-01-06 02:25:06 +00:00
|
|
|
int foo() {
|
2023-03-02 20:48:48 +00:00
|
|
|
if (tint_workgroupUniformLoad(v)) {
|
2023-01-06 02:25:06 +00:00
|
|
|
return 42;
|
|
|
|
}
|
|
|
|
return 0;
|
|
|
|
}
|