mirror of
https://github.com/GPUOpen-LibrariesAndSDKs/VulkanMemoryAllocator.git
synced 2024-11-27 00:44:35 +00:00
Minor update in VmaDefragmentationInfo2.
This commit is contained in:
parent
012a4ac697
commit
2aad902a66
@ -2567,7 +2567,7 @@ typedef struct VmaDefragmentationInfo2 {
|
|||||||
VmaDefragmentationFlags flags;
|
VmaDefragmentationFlags flags;
|
||||||
/** \brief Number of allocations in `pAllocations` array.
|
/** \brief Number of allocations in `pAllocations` array.
|
||||||
*/
|
*/
|
||||||
size_t allocationCount;
|
uint32_t allocationCount;
|
||||||
/** \brief Pointer to array of allocations that can be defragmented.
|
/** \brief Pointer to array of allocations that can be defragmented.
|
||||||
|
|
||||||
The array should have `allocationCount` elements.
|
The array should have `allocationCount` elements.
|
||||||
@ -12749,7 +12749,7 @@ VkResult VmaAllocator_T::DefragmentationBegin(
|
|||||||
maxAllocationsToMove);
|
maxAllocationsToMove);
|
||||||
}
|
}
|
||||||
|
|
||||||
// ======== Destroy defragmentators.
|
// ======== Destroy defragmentators (regardless of result).
|
||||||
|
|
||||||
// Process custom pools.
|
// Process custom pools.
|
||||||
for(size_t poolIndex = poolCount; poolIndex--; )
|
for(size_t poolIndex = poolCount; poolIndex--; )
|
||||||
@ -14192,7 +14192,7 @@ VkResult vmaDefragment(
|
|||||||
// Deprecated interface, reimplemented using new one.
|
// Deprecated interface, reimplemented using new one.
|
||||||
|
|
||||||
VmaDefragmentationInfo2 info2 = {};
|
VmaDefragmentationInfo2 info2 = {};
|
||||||
info2.allocationCount = allocationCount;
|
info2.allocationCount = (uint32_t)allocationCount;
|
||||||
info2.pAllocations = pAllocations;
|
info2.pAllocations = pAllocations;
|
||||||
info2.pAllocationsChanged = pAllocationsChanged;
|
info2.pAllocationsChanged = pAllocationsChanged;
|
||||||
if(pDefragmentationInfo != VMA_NULL)
|
if(pDefragmentationInfo != VMA_NULL)
|
||||||
|
Loading…
Reference in New Issue
Block a user