MeshCache

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

Vulkan mesh cache implementation.

Methods
Method 
Description 
Allocates MeshCache item and its buffers. 
Determines whether the cache buffers are locked or unlocked. 
Clears mesh cache, releasing all buffers except for reserve. 
Informs cache that the frame rendering has ended. 
 
Initialize MeshCache for operation, including allocating of the reserve buffer. 
Locks the cache buffers by pinning the meshes. 
Locks the buffers (VB/IB) of a MeshCacheItem, returning CPU addressable memory to update them. 
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

Vulkan_MeshCache.h