We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
#[track_caller]
Registry
1 parent 4b0a7d3 commit 1086c97Copy full SHA for 1086c97
wgpu-core/src/registry.rs
@@ -138,9 +138,11 @@ impl<T: Resource> Registry<T> {
138
pub(crate) fn get(&self, id: Id<T::Marker>) -> Result<Arc<T>, InvalidId> {
139
self.read().get_owned(id)
140
}
141
+ #[track_caller]
142
pub(crate) fn read<'a>(&'a self) -> RwLockReadGuard<'a, Storage<T>> {
143
self.storage.read()
144
145
146
pub(crate) fn write<'a>(&'a self) -> RwLockWriteGuard<'a, Storage<T>> {
147
self.storage.write()
148
0 commit comments