LiteFX::Rendering::IGraphicsFactory::endDefragmentationPass¶
Ends a defragmentation pass.
Synopsis¶
Declared in <litefx/rendering_api.hpp>
[[dllimport, dllexport]] virtual bool endDefragmentationPass() const = 0;
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.
Exceptions¶
| Name | Thrown on |
|---|---|
RuntimeException | Thrown, if no defragmentation process is currently active. |
See Also¶
beginDefragmentation
beginDefragmentationPass