Skip to content

Commit

Permalink
Added VMA_LEN_IF_NOT_NULL decoration to the new functions vmaCopyMemo…
Browse files Browse the repository at this point in the history
…ryToAllocation, vmaCopyAllocationToMemory

Fixes #406 - thanks @qbojj
  • Loading branch information
adam-sawicki-a committed Feb 6, 2024
1 parent a13c193 commit 38627f4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/vk_mem_alloc.h
Original file line number Diff line number Diff line change
Expand Up @@ -2204,7 +2204,7 @@ Do not pass allocation's offset within device memory block this parameter!
*/
VMA_CALL_PRE VkResult VMA_CALL_POST vmaCopyMemoryToAllocation(
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,
VkDeviceSize dstAllocationLocalOffset,
VkDeviceSize size);
Expand Down Expand Up @@ -2234,7 +2234,7 @@ VMA_CALL_PRE VkResult VMA_CALL_POST vmaCopyAllocationToMemory(
VmaAllocator VMA_NOT_NULL allocator,
VmaAllocation VMA_NOT_NULL srcAllocation,
VkDeviceSize srcAllocationLocalOffset,
void* VMA_NOT_NULL pDstHostPointer,
void* VMA_NOT_NULL VMA_LEN_IF_NOT_NULL(size) pDstHostPointer,
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.
Expand Down

0 comments on commit 38627f4

Please sign in to comment.