MeshCache::StagingBufferPrep::StagingBufferPrep

MeshCache::StagingBufferPrep::StagingBufferPrep
StagingBufferPrep(HAL* hal, MeshCache* cache, MeshCacheItem::MeshContent & mc, const VertexFormat* format, bool canCopyData);
Description

Initializes StagingBufferPrep for pinning mesh data in the staging buffer.

Parameters
Parameters 
Description 
HAL* hal 
The render HAL
MeshCache* cache 
Pointer to the mesh cache. 
MeshCacheItem::MeshContent & mc 
Content in the mesh cache. 
const VertexFormat* format 
The required vertex format of the data to be prepared. 
bool canCopyData 
True, if the system is capable of copying vertex/index data from existing MeshCacheItems.