Navigation
API > API/Plugins > API/Plugins/XRBase > API/Plugins/XRBase/ExecuteOnRenderThread
References
Module | XRBase |
Header | /Engine/Plugins/Runtime/XRBase/Source/XRBase/Public/XRThreadUtils.h |
Include | #include "XRThreadUtils.h" |
Source | /Engine/Plugins/Runtime/XRBase/Source/XRBase/Private/XRThreadUtils.cpp |
void ExecuteOnRenderThread
&40;
const TFunctionRef< void(FRHICommandListImmediate &)> & Function
&41;
Remarks
Utility function for easily running a TFunctionRef on the render thread. Must be invoked from the game thread. If rendering does not use a separate thread, the TFunction will 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.
Parameters
Name | Description |
---|---|
Function | the Function to be invoked on the render thread. When executed, it will get the current FRHICommandList instance passed in as its sole argument. |