Skip to main content

vyre_wgpu/runtime/cache/
mod.rs

1//! Tiered runtime cache primitives.
2
3pub use buffer_pool::{BufferPool, PooledBuffer};
4pub use lru::AccessTracker;
5pub use tiered_cache::{
6    AccessStats, CacheEntry, CacheError, CacheTier, LruPolicy, TierPolicy, TieredCache,
7};
8
9/// Reusable GPU buffer pooling.
10pub mod buffer_pool;
11/// LRU tracking.
12pub mod lru;
13/// Multi-tier cache storage, policy, and errors.
14pub mod tiered_cache;
15
16/// Backwards-compatible cache entry path.
17pub mod cache_entry {
18    pub use super::CacheEntry;
19}
20
21/// Backwards-compatible cache tier path.
22pub mod cache_tier {
23    pub use super::CacheTier;
24}
25
26/// Backwards-compatible tier policy path.
27pub mod tier {
28    pub use super::{AccessStats, CacheError, LruPolicy, TierPolicy};
29}
30
31/// Cache test suites.
32#[cfg(test)]
33pub mod tests;