mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-29 09:34:09 +01:00
Fix atomic storage global use acces (#6600)
This commit is contained in:
1 file changed
+1
-1
@@ -1054,7 +1054,7 @@ impl FunctionInfo {
|
||||
value,
|
||||
result: _,
|
||||
} => {
|
||||
let _ = self.add_ref_impl(pointer, GlobalUse::WRITE);
|
||||
let _ = self.add_ref_impl(pointer, GlobalUse::READ | GlobalUse::WRITE);
|
||||
let _ = self.add_ref(value);
|
||||
if let crate::AtomicFunction::Exchange { compare: Some(cmp) } = *fun {
|
||||
let _ = self.add_ref(cmp);
|
||||
|
||||
Reference in new issue
Block a user