pub struct RenderCache { /* private fields */ }Expand description
Cloneable rendering compute cache shared by sessions and export workers; unlike a
crate::ResourceStore, its entries are recomputable and may be evicted.
Each partition has its own entry and logical-byte allowance; external Arc pins
and allocator overhead are not included. Computation runs outside cache locks.
Implementations§
Source§impl RenderCache
impl RenderCache
Sourcepub fn with_limits(limits: CacheLimits) -> Self
pub fn with_limits(limits: CacheLimits) -> Self
Creates independent LRU partitions with the supplied per-partition limits.
Sourcepub fn partition(&self, partition: CachePartition) -> &Arc<SceneCache> ⓘ
pub fn partition(&self, partition: CachePartition) -> &Arc<SceneCache> ⓘ
Shared storage for one domain. Costed entries must include owned key payloads.
Sourcepub fn fork_partition(&self, partition: CachePartition) -> Self
pub fn fork_partition(&self, partition: CachePartition) -> Self
Isolates one domain while sharing the other partitions and preserving limits.
Trait Implementations§
Source§impl Clone for RenderCache
impl Clone for RenderCache
Source§impl Debug for RenderCache
impl Debug for RenderCache
Auto Trait Implementations§
impl Forget for RenderCache
impl Freeze for RenderCache
impl Move for RenderCache
impl RefUnwindSafe for RenderCache
impl Send for RenderCache
impl Sync for RenderCache
impl Unpin for RenderCache
impl UnsafeUnpin for RenderCache
impl UnwindSafe for RenderCache
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