Added VMA_LEN_IF_NOT_NULL decoration to the new functions vmaCopyMemoryToAllocation, vmaCopyAllocationToMemory

Fixes #406 - thanks @qbojj
This commit is contained in:
Adam Sawicki 2024-02-06 13:13:24 +01:00
parent a13c193d1e
commit 38627f4e37

View File

@ -2204,7 +2204,7 @@ Do not pass allocation's offset within device memory block this parameter!
*/ */
VMA_CALL_PRE VkResult VMA_CALL_POST vmaCopyMemoryToAllocation( VMA_CALL_PRE VkResult VMA_CALL_POST vmaCopyMemoryToAllocation(
VmaAllocator VMA_NOT_NULL allocator, VmaAllocator VMA_NOT_NULL allocator,
const void* VMA_NOT_NULL pSrcHostPointer, const void* VMA_NOT_NULL VMA_LEN_IF_NOT_NULL(size) pSrcHostPointer,
VmaAllocation VMA_NOT_NULL dstAllocation, VmaAllocation VMA_NOT_NULL dstAllocation,
VkDeviceSize dstAllocationLocalOffset, VkDeviceSize dstAllocationLocalOffset,
VkDeviceSize size); VkDeviceSize size);
@ -2234,7 +2234,7 @@ VMA_CALL_PRE VkResult VMA_CALL_POST vmaCopyAllocationToMemory(
VmaAllocator VMA_NOT_NULL allocator, VmaAllocator VMA_NOT_NULL allocator,
VmaAllocation VMA_NOT_NULL srcAllocation, VmaAllocation VMA_NOT_NULL srcAllocation,
VkDeviceSize srcAllocationLocalOffset, VkDeviceSize srcAllocationLocalOffset,
void* VMA_NOT_NULL pDstHostPointer, void* VMA_NOT_NULL VMA_LEN_IF_NOT_NULL(size) pDstHostPointer,
VkDeviceSize size); VkDeviceSize size);
/** \brief Checks magic number in margins around all allocations in given memory types (in both default and custom pools) in search for corruptions. /** \brief Checks magic number in margins around all allocations in given memory types (in both default and custom pools) in search for corruptions.