INNER CODE UNIT · Rust

cache_mut

attackgoat/vk-graph · crates/vk-graph-hot/src/lib.rs:267

                fn cache_mut(&self) -> ::std::sync::RwLockWriteGuard<'_, HotPipeline<$pipeline>> {
                    self.cache.write().expect("poisoned hot pipeline lock")
                }
            }

            impl [<Hot $pipeline>] {
                /// The device which owns this pipeline.
                pub fn device(&self) -> &Device {
                    &self.device
                }

                /// Gets the information used to create this object.
                pub fn info(&self) -> [<$pipeline Info>] {
                    self.cache().pipeline.info()
                }

                /// Sets the debugging name assigned to this pipeline.
                ///

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…