mirror of
https://github.com/doitsujin/dxvk.git
synced 2024-12-02 10:24:12 +01:00
[dxvk] Rename memoryAvailable -> memoryBudget
This commit is contained in:
parent
fac3ae9f83
commit
e116ff49e6
@ -248,7 +248,7 @@ namespace dxvk {
|
||||
if ((memInfo.heaps[i].heapFlags & heapFlagMask) != heapFlags)
|
||||
continue;
|
||||
|
||||
pVideoMemoryInfo->Budget += memInfo.heaps[i].memoryAvailable;
|
||||
pVideoMemoryInfo->Budget += memInfo.heaps[i].memoryBudget;
|
||||
pVideoMemoryInfo->CurrentUsage += memInfo.heaps[i].memoryAllocated;
|
||||
}
|
||||
|
||||
|
@ -51,10 +51,10 @@ namespace dxvk {
|
||||
info.heaps[i].heapFlags = memProps.memoryProperties.memoryHeaps[i].flags;
|
||||
|
||||
if (m_hasMemoryBudget) {
|
||||
info.heaps[i].memoryAvailable = memBudget.heapBudget[i];
|
||||
info.heaps[i].memoryBudget = memBudget.heapBudget[i];
|
||||
info.heaps[i].memoryAllocated = memBudget.heapUsage[i];
|
||||
} else {
|
||||
info.heaps[i].memoryAvailable = memProps.memoryProperties.memoryHeaps[i].size;
|
||||
info.heaps[i].memoryBudget = memProps.memoryProperties.memoryHeaps[i].size;
|
||||
info.heaps[i].memoryAllocated = m_heapAlloc[i].load();
|
||||
}
|
||||
}
|
||||
|
@ -27,7 +27,7 @@ namespace dxvk {
|
||||
*/
|
||||
struct DxvkAdapterMemoryHeapInfo {
|
||||
VkMemoryHeapFlags heapFlags;
|
||||
VkDeviceSize memoryAvailable;
|
||||
VkDeviceSize memoryBudget;
|
||||
VkDeviceSize memoryAllocated;
|
||||
};
|
||||
|
||||
|
@ -221,7 +221,7 @@ namespace dxvk {
|
||||
m_device->extensions().extMemoryBudget
|
||||
? str::format(
|
||||
(memHeapInfo.heaps[i].memoryAllocated >> 20), " MB allocated (driver), ",
|
||||
(memHeapInfo.heaps[i].memoryAvailable >> 20), " MB available (driver), ",
|
||||
(memHeapInfo.heaps[i].memoryBudget >> 20), " MB budget (driver), ",
|
||||
(m_memHeaps[i].properties.size >> 20), " MB total")
|
||||
: str::format(
|
||||
(m_memHeaps[i].properties.size >> 20), " MB total")));
|
||||
|
Loading…
Reference in New Issue
Block a user