Module |
|
Header |
/Engine/Source/Runtime/HeadMountedDisplay/Public/XRThreadUtils.h |
Include |
#include "XRThreadUtils.h" |
Source |
/Engine/Source/Runtime/HeadMountedDisplay/Private/XRThreadUtils.cpp |
void ExecuteOnRHIThread
(
const TFunctionRef< void &)> & Function
)
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.
Parameter |
Description |
---|---|
Function |
the Function to be invoked on the RHI thread. When executed, it will get the current FRHICommandList instance passed in as its sole argument. |