diff --git a/wgpu-core/src/registry.rs b/wgpu-core/src/registry.rs index 3abd4b6eb9..84f073d086 100644 --- a/wgpu-core/src/registry.rs +++ b/wgpu-core/src/registry.rs @@ -101,9 +101,11 @@ impl Registry { pub(crate) fn get(&self, id: Id) -> Result, InvalidId> { self.read().get_owned(id) } + #[track_caller] pub(crate) fn read<'a>(&'a self) -> RwLockReadGuard<'a, Storage> { self.storage.read() } + #[track_caller] pub(crate) fn write<'a>(&'a self) -> RwLockWriteGuard<'a, Storage> { self.storage.write() }