UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
D3D12DirectCommandListManager.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3#pragma once
4
5#include "Containers/Map.h"
6#include "D3D12ThirdParty.h"
8
9class FD3D12Adapter;
11class FD3D12Queue;
12
14
15// A fence that is manually signaled on the graphics pipe (all graphics pipes in mGPU setups).
16// @todo: Remove this. Systems that rely on this fence should be converted to use sync points instead.
18{
19 FD3D12Adapter* const Parent;
21
22 FThreadSafeCounter NextFenceValueTOP = 0;
23 uint64 NextFenceValueBOP = 0;
24 uint64 CompletedFenceValue = 0;
25
26 FD3D12ManualFence(FD3D12ManualFence const&) = delete;
28
29public:
31
32 // Returned the fence value which has been signaled by the GPU.
33 // If bUpdateCachedFenceValue is false, only the cached value is returned.
34 // Otherwise, the latest fence value is queried from the driver, and the cached value is updated.
36
37 // Determines if the given fence value has been signaled on the GPU.
42
43 // Returns the next value to be signaled.
45 {
46 return NextFenceValueTOP.GetValue() + 1;
47 }
48
49 void AdvanceTOP();
50 void AdvanceBOP();
51};
FPlatformTypes::int32 int32
A 32-bit signed integer.
Definition Platform.h:1125
FPlatformTypes::uint64 uint64
A 64-bit unsigned integer.
Definition Platform.h:1117
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
int32 GEmitRgpFrameMarkers
Definition D3D12CommandContext.cpp:24
Definition D3D12Adapter.h:136
Definition D3D12CommandContext.h:513
Definition D3D12DirectCommandListManager.h:18
uint64 GetNextFenceToSignal() const
Definition D3D12DirectCommandListManager.h:44
uint64 GetCompletedFenceValue(bool bUpdateCachedFenceValue)
Definition D3D12DirectCommandListManager.cpp:159
void AdvanceBOP()
Definition D3D12DirectCommandListManager.cpp:185
bool IsFenceComplete(uint64 FenceValue, bool bUpdateCachedFenceValue)
Definition D3D12DirectCommandListManager.h:38
void AdvanceTOP()
Definition D3D12DirectCommandListManager.cpp:179
Definition D3D12Device.h:104
Definition ThreadSafeCounter.h:14
int32 GetValue() const
Definition ThreadSafeCounter.h:120
Definition UnrealString.h.inl:34