Use auto instead of an explicit type.

This commit is contained in:
Chip Davis 2023-12-16 14:55:04 -07:00 committed by GitHub
parent 28be920b2f
commit 99123bf1dc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;