Skip to content

IRenderResourceCache.TryAdd method

Attempts to admit a completed resource without exceeding the device byte or count budget. On failure the caller retains ownership of surface and image.

public bool TryAdd(RenderCacheKey key, IRenderSurface surface, IImage image,
out IRenderCacheEntry entry, IRenderOperation? safeToDisposeAfter = null)