MeshCache

MeshCache
Declaration
class MeshCache : public Render::MeshCache;
Description

GL mesh cache implementation with the following characteristics: 

- multiple cache lists and allocators; one per Buffer. 

-Relies on 'Extended Locks'.

Enumerations
Enumeration 
Description 
List of possible strategies used to update buffers within the mesh cache. They are listed in order of preference however, all system may not support all of these methods. 
Methods
Method 
Description 
Allocates MeshCache item and its buffers. 
Returns the type of strategy used to update buffers within the mesh cache. 
Returns the statistics pertaining to mesh cache. 
Locks the buffers (VB/IB) of a MeshCacheItem, returning CPU addressable memory to update them. 
Determines whether vertex/index buffers are mapped. 
Clears mesh cache, releasing all buffers except for reserve. 
Informs cache that the frame rendering has ended. 
Evicts the mesh data item from the mesh/index caches and frees it. 
Returns the QueueMode which reports the type of the queue handling performed on the meshes. 
Initializes MeshCache for operation, including allocation of the reserve buffer. 
Locks the cache buffers by pinning the meshes. 
MeshCache constructor. 
Resets the mesh cache, releasing all buffers. 
Sets new MeshCache parameters, recreating mesh buffers if the cache is already initialized. 
Unlocks the cache buffers required during the render queue processing. 
File

GL_MeshCache.h