mirror of
https://github.com/gfx-rs/wgpu.git
synced 2024-11-22 14:55:05 +00:00
8a2bc07f11
Properly adjust `AtomicFunction::Exchange::compare` after pipeline constant evaluation.
8 lines
133 B
WebGPU Shading Language
8 lines
133 B
WebGPU Shading Language
override o: i32;
|
|
var<workgroup> a: atomic<u32>;
|
|
|
|
@compute @workgroup_size(1)
|
|
fn f() {
|
|
atomicCompareExchangeWeak(&a, u32(o), 1u);
|
|
}
|