Choose your operating system:
Windows
macOS
Linux
Module |
|
Header |
/Engine/Source/Runtime/RHI/Public/RHIResources.h |
Include |
#include "RHIResources.h" |
class FRHIGPUFence : public FRHIResource
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.
Name | Description | ||
---|---|---|---|
|
FenceName |
||
|
NumPendingWriteCommands |
Name | Description | |
---|---|---|
|
FRHIGPUFence ( |
Name | Description | |
---|---|---|
|
~FRHIGPUFence() |
Name | Description | ||
---|---|---|---|
|
Clear() |
||
|
const FName ... |
GetFName() |
|
|
Poll() |
Poll the fence to see if the GPU has signaled it. |
|
|
Poll ( |
Poll on a subset of the GPUs that this fence supports. |