pub struct WgpuPipelineCache { /* private fields */ }Expand description
Small FIFO cache for validated pipelines.
Implementations§
Source§impl WgpuPipelineCache
impl WgpuPipelineCache
Sourcepub fn get_or_insert(
&mut self,
probe: &WgpuAdapterProbe,
op: WgpuKernelOp,
dtype: WgpuKernelDType,
rank: usize,
) -> WgpuPipelineRecord
pub fn get_or_insert( &mut self, probe: &WgpuAdapterProbe, op: WgpuKernelOp, dtype: WgpuKernelDType, rank: usize, ) -> WgpuPipelineRecord
Returns an existing pipeline or validates and inserts one.
Sourcepub fn snapshot(&self) -> WgpuPipelineCacheSnapshot
pub fn snapshot(&self) -> WgpuPipelineCacheSnapshot
Returns cache pressure and reuse counters.
Trait Implementations§
Source§impl Clone for WgpuPipelineCache
impl Clone for WgpuPipelineCache
Source§fn clone(&self) -> WgpuPipelineCache
fn clone(&self) -> WgpuPipelineCache
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for WgpuPipelineCache
impl Debug for WgpuPipelineCache
Auto Trait Implementations§
impl Freeze for WgpuPipelineCache
impl RefUnwindSafe for WgpuPipelineCache
impl Send for WgpuPipelineCache
impl Sync for WgpuPipelineCache
impl Unpin for WgpuPipelineCache
impl UnsafeUnpin for WgpuPipelineCache
impl UnwindSafe for WgpuPipelineCache
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more