MeshCache::StagingBufferPrep::GenerateMeshes

MeshCache::StagingBufferPrep::GenerateMeshes
void GenerateMeshes(HAL* hal, MeshCacheItem * skipBatch = 0);
Description

GenerateMeshes is called to actually generate the meshes, or alternatively copy them from an existing buffer. It is called both before (by the constructor) and after the new MeshCacheItem is allocated, because this allocation may cause eviction of the previous buffer (and then it cannot be copied from).

Parameters
Parameters 
Description 
HAL* hal 
The render HAL
MeshCacheItem * skipBatch = 0 
_nt_