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.

Select Skin
Light
Dark

Welcome to the new Unreal Engine 4 Documentation site!

We're working on lots of new features including a feedback system so you can tell us how we are doing. It's not quite ready for use in the wild yet, so head over to the Documentation Feedback forum to tell us about this page or call out any issues you are encountering in the meantime.

We'll be sure to let you know when the new system is up and running.

Post Feedback