From fc931bd5accca3af5b30c2f6164f48bc72635997 Mon Sep 17 00:00:00 2001 From: Joe Hermaszewski Date: Fri, 10 Apr 2020 21:27:55 +0800 Subject: [PATCH] Add missing length annotation in vmaAllocateMemoryPages --- src/vk_mem_alloc.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/vk_mem_alloc.h b/src/vk_mem_alloc.h index abe6e5b..ad5ce69 100644 --- a/src/vk_mem_alloc.h +++ b/src/vk_mem_alloc.h @@ -3139,8 +3139,8 @@ returned result is not `VK_SUCCESS`, `pAllocation` array is always entirely fill */ VMA_CALL_PRE VkResult VMA_CALL_POST vmaAllocateMemoryPages( VmaAllocator VMA_NOT_NULL allocator, - const VkMemoryRequirements* VMA_NOT_NULL pVkMemoryRequirements, - const VmaAllocationCreateInfo* VMA_NOT_NULL pCreateInfo, + const VkMemoryRequirements* VMA_NOT_NULL VMA_LEN_IF_NOT_NULL(allocationCount) pVkMemoryRequirements, + const VmaAllocationCreateInfo* VMA_NOT_NULL VMA_LEN_IF_NOT_NULL(allocationCount) pCreateInfo, size_t allocationCount, VmaAllocation VMA_NULLABLE * VMA_NOT_NULL VMA_LEN_IF_NOT_NULL(allocationCount) pAllocations, VmaAllocationInfo* VMA_NULLABLE VMA_LEN_IF_NOT_NULL(allocationCount) pAllocationInfo);