Removed VMA_DEFRAGMENTATION_CAN_MAKE_LOST_BIT. Not going to implement it for now...

This commit is contained in:
Adam Sawicki 2018-11-16 14:46:04 +01:00
parent 48a12aa835
commit 9948ca0ceb
2 changed files with 1 additions and 6 deletions

View File

@ -1754,7 +1754,7 @@ void Player::Defragment()
defragInfo.maxCpuBytesToMove = VK_WHOLE_SIZE; defragInfo.maxCpuBytesToMove = VK_WHOLE_SIZE;
defragInfo.maxGpuAllocationsToMove = UINT32_MAX; defragInfo.maxGpuAllocationsToMove = UINT32_MAX;
defragInfo.maxGpuBytesToMove = VK_WHOLE_SIZE; defragInfo.maxGpuBytesToMove = VK_WHOLE_SIZE;
defragInfo.flags = VMA_DEFRAGMENTATION_CAN_MAKE_LOST_BIT; defragInfo.flags = 0;
defragInfo.commandBuffer = m_CommandBuffer; defragInfo.commandBuffer = m_CommandBuffer;
VmaDefragmentationContext defragCtx = VK_NULL_HANDLE; VmaDefragmentationContext defragCtx = VK_NULL_HANDLE;

View File

@ -2580,11 +2580,6 @@ VK_DEFINE_HANDLE(VmaDefragmentationContext)
/// Flags to be used in vmaDefragmentationBegin(). /// Flags to be used in vmaDefragmentationBegin().
typedef enum VmaDefragmentationFlagBits { typedef enum VmaDefragmentationFlagBits {
/** Add this flag to enable allocations created with #VMA_ALLOCATION_CREATE_CAN_BECOME_LOST_BIT
flag to become lost during defragmentation process if the algorithm decides it is beneficial.
*/
VMA_DEFRAGMENTATION_CAN_MAKE_LOST_BIT = 0x00000001,
/** Add this flag to change defragmentation algorithm to fast rather than default (balanced). /** Add this flag to change defragmentation algorithm to fast rather than default (balanced).
This algorithm will favor speed over quality of defragmentation. This algorithm will favor speed over quality of defragmentation.
Defragmentation will be done as fast and move as little allocations and bytes as possible while Defragmentation will be done as fast and move as little allocations and bytes as possible while