MeshCache

MeshCache
Declaration
class MeshCache : public CacheBase, public MeshCacheConfig;
Description

MeshCache maintains the hardware Vertex and Index buffers cached objects lists, providing an API used to manage the shape meshes.

Classes
Class 
Description 
Prepares the argument content in the staging buffer and pins it there until destructor is called. 
Enumerations
Enumeration 
Description 
Indicates the result of mesh data allocation. 
Describes different capability flags available in MeshCache. MeshCacheCaps stores these, and should be set on MeshCache::Initialize (HAL::InitHAL). 
 
 
Reports the type of queue handling expected by MeshCache from the RenderQueueProcessor
Methods
Method 
Description 
Generates mesh data, placing it either in StagingBuffer (for smaller meshes) or directly into cache (large mesh). 
Allocates back-end specific MeshCacheItem and its buffers. 
Determines whether the cache buffers are locked or unlocked. 
Begins rendering the current frame. 
Informs cache that the frame rendering has ended. 
Evicts MeshCacheItem from mesh/index caches and frees it. 
Obtains the batch containing the mesh combination in cache. 
Generates complex meshes and uploads them to buffers. 
Returns the status of the mesh buffer data. 
Generates meshes and uploads them to buffers. 
Returns the thrash count for the MeshCache. 
Sets the thrash count for the MeshCache to zero. 
Returns the applied MeshCacheParams value for the MeshCache. 
Returns the QueueMode which reports the type of the queue handling performed on the meshes. 
Returns the statistics pertaining to mesh cache. 
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. 
Moves MeshCacheItem to the front of the specified cache list. 
Called after a mesh has been written. 
Converts indices of a large mesh directly into a mesh buffer. 
Converts vertex data of a large mesh directly into a mesh buffer. 
Sets the cache interface used by the rendering queue. 
Unlocks the cache buffers required during the render queue processing. 
Structures
Structure 
Description 
Result state for directly allocated meshes. 
 
File

Render_MeshCache.h