dawn-cmake/test/tint/builtins/workgroupUniformLoad/if_condition.wgsl.expected....

21 lines
333 B
HLSL

[numthreads(1, 1, 1)]
void unused_entry_point() {
return;
}
bool tint_workgroupUniformLoad(inout bool p) {
GroupMemoryBarrierWithGroupSync();
const bool result = p;
GroupMemoryBarrierWithGroupSync();
return result;
}
groupshared bool v;
int foo() {
if (tint_workgroupUniformLoad(v)) {
return 42;
}
return 0;
}