2023-01-06 02:25:06 +00:00
|
|
|
[numthreads(1, 1, 1)]
|
|
|
|
void unused_entry_point() {
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
struct Inner {
|
|
|
|
bool b;
|
|
|
|
int4 v;
|
|
|
|
float3x3 m;
|
|
|
|
};
|
|
|
|
struct Outer {
|
|
|
|
Inner a[4];
|
|
|
|
};
|
|
|
|
|
2023-03-02 20:48:48 +00:00
|
|
|
Outer tint_workgroupUniformLoad(inout Outer p) {
|
2023-01-06 02:25:06 +00:00
|
|
|
GroupMemoryBarrierWithGroupSync();
|
2023-03-02 20:48:48 +00:00
|
|
|
const Outer result = p;
|
2023-01-06 02:25:06 +00:00
|
|
|
GroupMemoryBarrierWithGroupSync();
|
|
|
|
return result;
|
|
|
|
}
|
|
|
|
|
2023-03-02 20:48:48 +00:00
|
|
|
groupshared Outer v;
|
|
|
|
|
2023-01-06 02:25:06 +00:00
|
|
|
Outer foo() {
|
2023-03-02 20:48:48 +00:00
|
|
|
return tint_workgroupUniformLoad(v);
|
2023-01-06 02:25:06 +00:00
|
|
|
}
|