pub unsafe extern "C" fn vmaBeginDefragmentationPass(
    allocator: VmaAllocator,
    context: VmaDefragmentationContext,
    pPassInfo: *mut VmaDefragmentationPassMoveInfo
) -> Result
Expand description

\brief Starts single defragmentation pass.

\param allocator Allocator object. \param context Context object that has been created by vmaBeginDefragmentation(). \param[out] pPassInfo Computed information for current pass. \returns

  • VK_SUCCESS if no more moves are possible. Then you can omit call to vmaEndDefragmentationPass() and simply end whole defragmentation.
  • VK_INCOMPLETE if there are pending moves returned in pPassInfo. You need to perform them, call vmaEndDefragmentationPass(), and then preferably try another pass with vmaBeginDefragmentationPass().