From 15b16f88b9ea43ac391fa406e8088bc8e64e7590 Mon Sep 17 00:00:00 2001 From: Ellie Hermaszewska Date: Fri, 14 Jan 2022 16:40:40 +0800 Subject: [PATCH] Add missing length annotation to pBudgets parameter in vmaGetHeapBudgets --- include/vk_mem_alloc.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/vk_mem_alloc.h b/include/vk_mem_alloc.h index ac1701a..188e888 100644 --- a/include/vk_mem_alloc.h +++ b/include/vk_mem_alloc.h @@ -1453,7 +1453,7 @@ become outdated. */ VMA_CALL_PRE void VMA_CALL_POST vmaGetHeapBudgets( VmaAllocator VMA_NOT_NULL allocator, - VmaBudget* VMA_NOT_NULL pBudgets); + VmaBudget* VMA_NOT_NULL VMA_LEN_IF_NOT_NULL("VkPhysicalDeviceMemoryProperties::memoryHeapCount") pBudgets); /** \brief Helps to find memoryTypeIndex, given memoryTypeBits and VmaAllocationCreateInfo.