MeshCache::Initialize

MeshCache::Initialize
bool Initialize(ID3D12Device* pdevice, RenderSync* rsync, ShaderManager* psm, ID3D12GraphicsCommandList* initCommandList);
Description

Initializes MeshCache for operation, including allocation of the reserve buffer.

Parameters
Parameters 
Description 
ID3D12Device* pdevice 
D3D Device. Required for creating mesh resources. 
RenderSync* rsync 
RenderSync device. Used for destroying resources. 
ShaderManager* psm 
ShaderManager. Used for querying capabilities. 
ID3D12GraphicsCommandList* initCommandList 
The command list that should be used in any MeshCache operations. Set with SetCommandList
Return Value

A Boolean value of true if the mesh cache is successfully initialized with a valid device and false otherwise.