Navigation
API > API/Plugins > API/Plugins/XRBase > API/Plugins/XRBase/ExecuteOnRHIThread
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 ExecuteOnRHIThread
&40;
const TFunctionRef< void()> & Function
&41;
Remarks
Utility function for easily running a TFunctionRef on the RHI thread. Must be invoked from the render thread. If RHI does not run on a separate thread, the TFunction will be executed on the current thread. This method will flush the RHI command list meaning that the function will be executed before ExecuteOnRHIThread returns.
Parameters
| Name | Description |
|---|---|
| Function | the Function to be invoked on the RHI thread. |