IRenderResourceCache interface
Holds a device’s resident resources and its scratch surface pool within a byte and count budget.
public interface IRenderResourceCacheMembers
Section titled “Members”| name | description |
|---|---|
| Add(…) | Adds a resident resource and returns its first active lease. |
| Maintain(…) | Drains completed retirements and performs bounded cache maintenance. |
| Release(…) | Removes cache residency; active leases keep the resource alive until returned. |
| ReleaseLater(…) | Disposes resource once safeAfter has completed. |
| RentScratchSurface(…) | Takes an exact or bounded larger scratch surface compatible with key, or null when the pool holds none. The caller owns the allocation until it is handed back via ReturnScratchSurface; the previous content is undefined. (2 methods) |
| ReturnScratchSurface(…) | Hands a surface (back) to the scratch pool for later reuse under key. The pool takes ownership: it disposes the surface when the budget forces eviction or the cache is disposed. The key must describe the surface’s actual allocation. |
| Trim(…) | Evicts entries for reason; active leases keep their resources alive. |
| TryAdd(…) | Attempts to admit a completed resource without exceeding the device byte or count budget. On failure the caller retains ownership of surface and image. |
| TryGet(…) | Acquires a lease for a completed resident entry. |
See Also
Section titled “See Also”- namespace Aprillz.MewUI.Rendering