/Engine/Plugins/Runtime/XRBase/Source/XRBase/Public/XRThreadUtils.h
Utility function for easily running aTFunctionRefon the render thread. Must be invoked from the game thread. If rendering does not use a separate thread, theTFunctionwill be executed immediately, otherwise it will be added to the render thread task queue. This method will flush rendering commands meaning that the function will be executed before ExecuteOnRenderThread returns.
true if the function was queued, false if rendering does not use a separate thread, in which case, the function has already been executed.
void ExecuteOnRenderThread ( const [TFunctionRef](API\Runtime\Core\GenericPlatform\TFunctionRef)< void()> & Function )