FRHIGPUFence

Inheritance Hierarchy

Syntax

class FRHIGPUFence : public FRHIResource

Remarks

Misc Generic GPU fence class. Granularity differs depending on backing RHI - ie it may only represent command buffer granularity. 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.

Variables

Name Description

Protected variable

FName

 

FenceName

Constructors

Name Description

Public function

FRHIGPUFence

(
    FName InName
)

Destructors

Name Description

Public function Virtual

~FRHIGPUFence()

Functions

Name Description

Public function

void

 

Clear()

Public function Const

bool

 

Poll()

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

References

Module

RHI

Header

Runtime/RHI/Public/RHIResources.h