Use auto
instead of an explicit type.
This commit is contained in:
parent
28be920b2f
commit
99123bf1dc
@ -1655,7 +1655,7 @@ VkResult MVKPhysicalDevice::getMemoryProperties(VkPhysicalDeviceMemoryProperties
|
|||||||
budgetProps->heapUsage[1] = (VkDeviceSize)mvkGetUsedMemorySize();
|
budgetProps->heapUsage[1] = (VkDeviceSize)mvkGetUsedMemorySize();
|
||||||
}
|
}
|
||||||
budgetProps->heapBudget[0] = (VkDeviceSize)getRecommendedMaxWorkingSetSize();
|
budgetProps->heapBudget[0] = (VkDeviceSize)getRecommendedMaxWorkingSetSize();
|
||||||
uint64_t currentAllocatedSize = (VkDeviceSize)getCurrentAllocatedSize();
|
auto currentAllocatedSize = (VkDeviceSize)getCurrentAllocatedSize();
|
||||||
if (budgetProps->heapUsage[1] > currentAllocatedSize) {
|
if (budgetProps->heapUsage[1] > currentAllocatedSize) {
|
||||||
// mapped memory can't be larger than total memory, so ignore and zero-out
|
// mapped memory can't be larger than total memory, so ignore and zero-out
|
||||||
budgetProps->heapUsage[1] = 0;
|
budgetProps->heapUsage[1] = 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user