LiteFX::Rendering::IDeviceMemory::moving¶
An event that gets invoked before a resource is copied during a move.
Synopsis¶
Declared in <litefx/rendering_api.hpp>
mutable
Event<ResourceMovingEventArgs> moving;
Description¶
This event gets invoked during defragmentation to inform any subscribers about the relocation. Moving a resource involves an asynchronous copy-command. This event is invoked after this command has been submitted, but before it has been executed. The moved event executes after the resource has been copied to the new location.
Note that this event is invoked on the thread that executes the defragmentation process, which means you potentially might want to synchronize the handler with other potential resource accesses.
See Also¶
moved
IGraphicsFactory::defragment