Skip to content

RenderResourceCache class

The framework’s IRenderResourceCache: resident entries under a byte and count budget, deferred releases, and a scratch surface pool that evicts idle and over-budget surfaces.

public sealed class RenderResourceCache : IDisposable, IRenderResourceCache
name description
RenderResourceCache() Creates a cache with the default resident budget (256 MB, 512 entries).
Add(…)
Dispose() Disposes every resident entry, pooled scratch surface and pending release, waiting for the operations they depend on.
Maintain(…)
Release(…)
ReleaseLater(…)
RentScratchSurface(…) (2 methods)
ReturnScratchSurface(…)
Trim(…)
TryAdd(…)
TryGet(…)