From 99123bf1dcdacee04c751f59866a28be38933644 Mon Sep 17 00:00:00 2001 From: Chip Davis Date: Sat, 16 Dec 2023 14:55:04 -0700 Subject: [PATCH] Use `auto` instead of an explicit type. --- MoltenVK/MoltenVK/GPUObjects/MVKDevice.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MoltenVK/MoltenVK/GPUObjects/MVKDevice.mm b/MoltenVK/MoltenVK/GPUObjects/MVKDevice.mm index f42987bf..47ca882e 100644 --- a/MoltenVK/MoltenVK/GPUObjects/MVKDevice.mm +++ b/MoltenVK/MoltenVK/GPUObjects/MVKDevice.mm @@ -1655,7 +1655,7 @@ VkResult MVKPhysicalDevice::getMemoryProperties(VkPhysicalDeviceMemoryProperties budgetProps->heapUsage[1] = (VkDeviceSize)mvkGetUsedMemorySize(); } budgetProps->heapBudget[0] = (VkDeviceSize)getRecommendedMaxWorkingSetSize(); - uint64_t currentAllocatedSize = (VkDeviceSize)getCurrentAllocatedSize(); + auto currentAllocatedSize = (VkDeviceSize)getCurrentAllocatedSize(); if (budgetProps->heapUsage[1] > currentAllocatedSize) { // mapped memory can't be larger than total memory, so ignore and zero-out budgetProps->heapUsage[1] = 0;