Navigation
API > API/Plugins > API/Plugins/XRBase
Overloads
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void ExecuteOnRHIThread
(
const TFunctionRef< void()>& Function |
Utility function for easily running a TFunctionRef on the RHI thread. | XRThreadUtils.h | |
void ExecuteOnRHIThread
(
const TFunctionRef< void(FRHICommandListImmediate&)>& Function |
Utility function for easily running a TFunctionRef on the RHI thread. | XRThreadUtils.h |
ExecuteOnRHIThread(const TFunctionRef< void()> &)
Description
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.
| Name | ExecuteOnRHIThread |
| Type | function |
| Header File | /Engine/Plugins/Runtime/XRBase/Source/XRBase/Public/XRThreadUtils.h |
| Include Path | #include "XRThreadUtils.h" |
| Source | /Engine/Plugins/Runtime/XRBase/Source/XRBase/Private/XRThreadUtils.cpp |
void ExecuteOnRHIThread
(
const TFunctionRef< void()> & Function
)
Parameters
| Name | Remarks |
|---|---|
| Function | the Function to be invoked on the RHI thread. |
ExecuteOnRHIThread(const TFunctionRef< void(FRHICommandListImmediate &)> &)
Description
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.
| Name | ExecuteOnRHIThread |
| Type | function |
| Header File | /Engine/Plugins/Runtime/XRBase/Source/XRBase/Public/XRThreadUtils.h |
| Include Path | #include "XRThreadUtils.h" |
| Source | /Engine/Plugins/Runtime/XRBase/Source/XRBase/Private/XRThreadUtils.cpp |
void ExecuteOnRHIThread
(
const TFunctionRef< void(FRHICommandListImmediate &)> & Function
)
Parameters
| Name | Remarks |
|---|---|
| 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. |