Skip to content

LiteFX::Rendering::Backends::VulkanGraphicsFactory::endDefragmentationPass

Ends a defragmentation pass.

Synopsis

Declared in <litefx/backends/vulkan.hpp>

[[dllimport, dllexport]] virtual bool endDefragmentationPass() const override;

Description

Before calling this method, make sure you have started a defragmentation process by calling beginDefragmentation. If no defragmentation process is currently started, calling this method raises an exception.

This method waits for the fence issued by the last call to beginDefragmentation before first invoking the IDeviceMemory::moved event on all affected resources and finally destroying the moved-from resources.

See Also

beginDefragmentation

beginDefragmentationPass