Skip to main content

atomic_load_u32

Function atomic_load_u32 

Source
pub fn atomic_load_u32(ptr: &mut u32) -> u32
Expand description

Atomically loads the value at *ptr.

Accepts &mut u32 for compatibility with SPIR-V’s pointer model where all atomic operations require mutable pointers. Use atomic_load_u32_shared when only a shared reference is available.