1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2025-02-20 19:54:19 +01:00

[dxvk] Add memory budget to memory stats

This commit is contained in:
Philip Rebohle 2024-10-03 01:06:21 +02:00 committed by Philip Rebohle
parent 513312885e
commit 0c49e30882
2 changed files with 2 additions and 0 deletions

View File

@ -1665,6 +1665,7 @@ namespace dxvk {
result.memoryUsed += type.stats.memoryUsed;
}
result.memoryBudget = m_memHeaps[heap].memoryBudget;
return result;
}

View File

@ -36,6 +36,7 @@ namespace dxvk {
struct DxvkMemoryStats {
VkDeviceSize memoryAllocated = 0;
VkDeviceSize memoryUsed = 0;
VkDeviceSize memoryBudget = 0;
};