Struct sixtyfps_corelib::graphics::RenderingCache [−][src]
pub struct RenderingCache<T> { /* fields omitted */ }
Expand description
The RenderingCache, in combination with CachedGraphicsData, allows backends to store data that’s either intensive to compute or has bad CPU locality. Backends typically keep a RenderingCache instance and use the item’s cached_rendering_data() integer as index in the vec_arena::Arena.
Implementations
Returns the generation of the cache. The generation starts at 1 and is increased whenever the cache is cleared, for example when the GL context is lost.
Retrieves a mutable reference to the cached graphics data at index.
Inserts data into the cache and returns the index for retrieval later.
Retrieves an immutable reference to the cached graphics data at index.
Removes the cached graphics data at the given index.
Trait Implementations
Auto Trait Implementations
impl<T> !RefUnwindSafe for RenderingCache<T>
impl<T> !Send for RenderingCache<T>
impl<T> !Sync for RenderingCache<T>
impl<T> Unpin for RenderingCache<T> where
T: Unpin,
impl<T> !UnwindSafe for RenderingCache<T>