correctly report memory usage for host buffer cache

This commit is contained in:
Samuliak 2024-11-03 16:58:32 +01:00
parent e00d244e0d
commit fbea328b9b
No known key found for this signature in database
3 changed files with 10 additions and 4 deletions

View file

@ -48,6 +48,11 @@ public:
return m_importedMemBaseAddress;
}
size_t GetHostAllocationSize() const
{
return m_hostAllocationSize;
}
private:
class MetalRenderer* m_mtlr;
@ -60,4 +65,5 @@ private:
MTL::Buffer* m_bufferCache = nullptr;
BufferCacheType m_bufferCacheType;
MPTR m_importedMemBaseAddress;
size_t m_hostAllocationSize = 0;
};