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 v[4];
|
|
|
|
|
|
|
|
int tint_workgroupUniformLoad_v_X(uint p[1]) {
|
2023-01-06 02:25:06 +00:00
|
|
|
GroupMemoryBarrierWithGroupSync();
|
2023-05-03 15:30:54 +00:00
|
|
|
const int result = v[p[0]];
|
2023-01-06 02:25:06 +00:00
|
|
|
GroupMemoryBarrierWithGroupSync();
|
|
|
|
return result;
|
|
|
|
}
|
|
|
|
|
|
|
|
int foo_v_X(uint p[1]) {
|
2023-05-03 15:30:54 +00:00
|
|
|
const uint tint_symbol[1] = {p[0u]};
|
|
|
|
return tint_workgroupUniformLoad_v_X(tint_symbol);
|
2023-01-06 02:25:06 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
int bar() {
|
2023-05-03 15:30:54 +00:00
|
|
|
const uint tint_symbol_1[1] = (uint[1])0;
|
|
|
|
return foo_v_X(tint_symbol_1);
|
2023-01-06 02:25:06 +00:00
|
|
|
}
|