(ptr: *mut T)
| 2 | use glam::Vec3; |
| 3 | |
| 4 | pub fn pack_pointer<T>(ptr: *mut T) -> (u32, u32) { |
| 5 | let x = ptr as u32; |
| 6 | let y = (ptr as u64 >> 32) as u32; |
| 7 | (x, y) |
| 8 | } |
| 9 | |
| 10 | pub fn unpack_pointer<T>(x: u32, y: u32) -> *mut T { |
| 11 | (((y as u64) << 32) | x as u64) as *mut T |
no outgoing calls
no test coverage detected