FRHIGPUFence

Generic GPU fence class.

Windows
MacOS
Linux

Inheritance Hierarchy

References

Module

RHI

Header

/Engine/Source/Runtime/RHI/Public/RHIResources.h

Include

#include "RHIResources.h"

Syntax

class FRHIGPUFence : public FRHIResource

Remarks

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

Public variable

FThreadSafeCoun...

 

NumPendingWriteCommands

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

const FName ...

 

GetFName()

Public function Const

bool

 

Poll()

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

Public function Virtual Const

bool

 

Poll

(
    FRHIGPUMask GPUMask
)

Poll on a subset of the GPUs that this fence supports.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss