FDynamicRHI::RHICreateComputeFence

FlushType: Thread safe, but varies depending on the RHI.

Windows
MacOS
Linux

References

Module

RHI

Header

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

Include

#include "DynamicRHI.h"

Syntax

FComputeFenceRHIRef RHICreateComputeFence
(
    const FName & Name
)

Remarks

Creates a compute fence. Compute fences are named GPU fences which can be written to once before resetting. A command to write the fence must be enqueued before any commands to wait on them. This is enforced on the CPU to avoid GPU hangs.

Returns

The new Fence.

Parameters

Parameter

Description

Name

Friendly name for the Fence. e.g. ReflectionEnvironmentComplete

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