/Engine/Source/Runtime/RenderCore/Public/RenderGraphBuilder.h
Tells the builder to delete unused RHI resources. The behavior of this method depends on whether RDG immediate mode is enabled: Deferred: RHI resource flushes are performed prior to execution. Immediate: RHI resource flushes are performed immediately.
void SetFlushResourcesRHI()