blob: e8316d4fa2c68f7217d13066aa7ccc3abad97c80 [file] [edit]
struct main_inputs {
uint tint_local_index : SV_GroupIndex;
};
static float p = 0.0f;
groupshared float w;
ByteAddressBuffer uniforms : register(t1);
RWByteAddressBuffer storages : register(u0);
void no_uses() {
}
void zoo() {
p = (p * 2.0f);
}
void bar(float a, float b) {
p = a;
w = b;
storages.Store(0u, asuint(asfloat(uniforms.Load(0u))));
zoo();
}
void foo(float a) {
float b = 2.0f;
bar(a, b);
no_uses();
}
void main_inner(uint tint_local_index) {
if ((tint_local_index == 0u)) {
w = 0.0f;
}
GroupMemoryBarrierWithGroupSync();
foo(1.0f);
}
[numthreads(1, 1, 1)]
void main(main_inputs inputs) {
main_inner(inputs.tint_local_index);
}