UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
RenderViewportFeedback.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3#pragma once
4
5#if WITH_EDITOR
6
7#include "Async/Mutex.h"
10
11enum EBloomMethod : int; // from Engine/Scene.h
12
18{
19public:
20 // Bloom method that was used during rendering.
21 EBloomMethod BloomMethod;
22};
23
25{
26
27class FCollector;
28
33class FReceiver : public TSharedFromThis<FReceiver, ESPMode::ThreadSafe>
34{
35 friend class FCollector;
36
37public:
39
40 // Call from game thread only
41 // Returns a copy, as the internal raw data may be updated at any time.
43
45
46private:
47 FRenderViewportFeedback InternalData;
48 mutable UE::FMutex Mutex;
49};
50
52class FCollector
53{
54 friend class FReceiver;
55
56public:
57 FCollector(FReceiver& InReceiver);
58
59 // Modify from render thread only
61 {
62 return InternalData;
63 }
64
65 // Data collection finished, push the data to the receiver.
66 RENDERCORE_API void EndFrameRenderThread();
67
68private:
69 // Weak pointer for in case the viewport is destroyed while the renderer is still active.
70 TWeakPtr<FReceiver> Receiver;
71 FRenderViewportFeedback InternalData;
72};
73
74};
75
76#endif //WITH_EDITOR
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
EBloomMethod
Definition Scene.h:55
Definition SharedPointer.h:1640
Definition SharedPointer.h:692
Definition SharedPointer.h:1295
Definition Mutex.h:18
GeometryCollection::Facades::FMuscleActivationData Data
Definition MuscleActivationConstraints.h:15
UE::FRecursiveMutex Mutex
Definition MeshPaintVirtualTexture.cpp:164
int
Definition TestServer.py:515
Definition SceneView.h:36