Navigation
API > API/Runtime > API/Runtime/RHI > API/Runtime/RHI/FRHIGPUFence
Description
Blocks the caller until the fence has passed on the GPU. Can only be called from the render thread.
CAUTION: Use of this function may cause a hitch if the fence is not yet signalled and we have to wait for the GPU to catch up. Rendering code should be written to avoid immediately waiting on GPU fences.
| Name | Wait |
| Type | function |
| Header File | /Engine/Source/Runtime/RHI/Public/RHIResources.h |
| Include Path | #include "RHIResources.h" |
void Wait
(
FRHICommandListImmediate & RHICmdList,
FRHIGPUMask GPUMask
) const