Mesh

Mesh
Declaration
class Mesh : public MeshBase;
Description

Mesh is an object that feeds coordinates to the renderer. 

Note: A mesh can be killed by user-eviction inside of RemoveMeshCacheItem call; this can cause a crash in case the pMeshes array has duplicates which are not matched inside of Mesh::CacheItems array. To avoid this early death problem, the meshes are AddRef/Release.

Data Members
Data Member 
Description 
List of MeshCacheItem (data cached in vertex/index buffers of MeshCache) participated in; if the mesh is thrown away, all those items can be thrown as well. 
Large meshes have size that is past the threshold (buffer size), hence they can't be batched. They can, however, be instanced. 
 
Methods
Method 
Description 
Increments the reference count of the array of meshes. 
Increments the reference count of the meshes. 
Returns real time status of mesh cache, which considers fencing. 
Determines whether the mesh data is evicted from the mesh staging buffer. 
Mesh 
Mesh constructor. 
Evicts the cached mesh from the staging buffer. 
Decrements the reference count of the array of meshes. 
Decrements the reference count of the meshes. 
Removes the mesh data from the cache. 
File

Render_Primitive.h