Merge pull request #220 from expipiplus1/master

Add missing length annotation to pBudgets parameter in vmaGetHeapBudgets
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 @@
 */

 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.