ResourceCache
Description
- Derived from
-
Disposable abstract
IResourceCache
IResourceConsumer
IVersioned
A cache for graphics resource objects, with an optional maximum GPU memory limit for resource objects that implement the IMemoryConsumption interface.
The estimated GPU memory consumption of resource objects obtained via IResourceCache.GetNull counts towards the memory limit. Resource objects obtained via IResourceCache.OwnNull do not count towards the memory limit.
Public / Constructors
ResourceCache
Creates a new instance of ResourceCache.
The initial cache size (see CacheMemory) will be 128 MB or 50% of the total GPU memory (see ITextureFactory.AvailableVideoMemory, whichever is greater.