Language:
Discover
By Skill Level
By Category

FRHIGPUFence

Choose your OS:

Inheritance Hierarchy

Syntax

class FRHIGPUFence : public FRHIResource

Remarks

Misc Generic GPU fence class used by FRHIGPUMemoryReadback RHI specific fences derive from this to implement real GPU->CPU fencing. The default implementation always returns false for Poll until the next frame from the frame the fence was inserted because not all APIs have a GPU/CPU sync object, we need to fake it.

Constructors

Name Description

Public function

FRHIGPUFence

(
    FName InName
)

Destructors

Name Description

Public function Virtual

~FRHIGPUFence()

Functions

Name Description

Public function

bool

 

Poll()

Poll the fence to see if the GPU has signaled it.

Public function Virtual

void

 

Write()

Signal this fence now, which completion can be tested with Poll or Wait.

References

Module

RHI

Header

Runtime/RHI/Public/RHIResources.h