use host memory instead of buffer cache when possible

This commit is contained in:
Samuliak 2024-11-03 11:53:16 +01:00
parent ed48fbfd55
commit ab41de4f9f
No known key found for this signature in database
5 changed files with 138 additions and 24 deletions

View file

@ -115,6 +115,17 @@ public:
}
*/
// Getters
bool UseHostMemoryForCache() const
{
return m_useHostMemoryForCache;
}
MPTR GetImportedMemBaseAddress() const
{
return m_importedMemBaseAddress;
}
private:
class MetalRenderer* m_mtlr;
@ -126,4 +137,6 @@ private:
//MetalVertexBufferCache m_vertexBufferCache;
MTL::Buffer* m_bufferCache = nullptr;
bool m_useHostMemoryForCache = false;
MPTR m_importedMemBaseAddress;
};