INNER CODE UNIT · Rust
cache
attackgoat/vk-graph · crates/vk-graph-hot/src/lib.rs:263
fn cache(&self) -> ::std::sync::RwLockReadGuard<'_, HotPipeline<$pipeline>> {
self.cache.read().expect("poisoned hot pipeline lock")
}
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()