Navigation
API > API/Runtime > API/Runtime/RHI > API/Runtime/RHI/FRHIGPUFence
Overloads
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
bool Poll () |
Poll the fence to see if the GPU has signaled it. | RHIResources.h | |
virtual bool Poll
(
FRHIGPUMask GPUMask |
Poll on a subset of the GPUs that this fence supports. | RHIResources.h |
Poll()
Description
Poll the fence to see if the GPU has signaled it. CAUTION: Do not call poll in a loop to block until completion. Some platform RHIs will not signal fences unless the RHI thread continues to make progress and submit GPU work.
To block for completion, call Wait(), which can only be done from the render thread.
Use Poll() only to check a fence. If it returns false, continue to do useful work and recheck later, ideally on the following frame.
| Name | Poll |
| Type | function |
| Header File | /Engine/Source/Runtime/RHI/Public/RHIResources.h |
| Include Path | #include "RHIResources.h" |
bool Poll() const
True if and only if the GPU fence has been inserted and the GPU has signaled the fence.
Poll(FRHIGPUMask)
Description
Poll on a subset of the GPUs that this fence supports.
CAUTION: Do not call poll in a loop to block until completion. Some platform RHIs will not signal fences unless the RHI thread continues to make progress and submit GPU work.
To block for completion, call Wait(), which can only be done from the render thread.
Use Poll() only to check a fence. If it returns false, continue to do useful work and recheck later, ideally on the following frame.
| Name | Poll |
| Type | function |
| Header File | /Engine/Source/Runtime/RHI/Public/RHIResources.h |
| Include Path | #include "RHIResources.h" |
virtual bool Poll
(
FRHIGPUMask GPUMask
) const