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
"
8
#include "
Templates/SharedPointer.h
"
9
#include "
Templates/UniquePtr.h
"
10
11
enum
EBloomMethod
:
int
;
// from Engine/Scene.h
12
17
class
FRenderViewportFeedback
18
{
19
public
:
20
// Bloom method that was used during rendering.
21
EBloomMethod
BloomMethod;
22
};
23
24
namespace
UE::RenderViewportFeedback
25
{
26
27
class
FCollector;
28
33
class
FReceiver
:
public
TSharedFromThis
<FReceiver, ESPMode::ThreadSafe>
34
{
35
friend
class
FCollector;
36
37
public
:
38
RENDERCORE_API
FReceiver
();
39
40
// Call from game thread only
41
// Returns a copy, as the internal raw data may be updated at any time.
42
RENDERCORE_API
FRenderViewportFeedback
Data
()
const
;
43
44
RENDERCORE_API
TSharedPtr<FCollector>
MakeCollector
();
45
46
private
:
47
FRenderViewportFeedback
InternalData;
48
mutable
UE::FMutex
Mutex
;
49
};
50
52
class
FCollector
53
{
54
friend
class
FReceiver
;
55
56
public
:
57
FCollector(
FReceiver
&
InReceiver
);
58
59
// Modify from render thread only
60
FRenderViewportFeedback
&
Data
()
61
{
62
return
InternalData;
63
}
64
65
// Data collection finished, push the data to the receiver.
66
RENDERCORE_API
void
EndFrameRenderThread();
67
68
private
:
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
SharedPointer.h
StaticCastSharedRef
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition
SharedPointer.h:127
Mutex.h
EBloomMethod
EBloomMethod
Definition
Scene.h:55
UniquePtr.h
TSharedFromThis
Definition
SharedPointer.h:1640
TSharedPtr
Definition
SharedPointer.h:692
TWeakPtr
Definition
SharedPointer.h:1295
UE::FMutex
Definition
Mutex.h:18
Chaos::Softs::Data
GeometryCollection::Facades::FMuscleActivationData Data
Definition
MuscleActivationConstraints.h:15
MeshPaintVirtualTexture::Mutex
UE::FRecursiveMutex Mutex
Definition
MeshPaintVirtualTexture.cpp:164
TestServer.int
int
Definition
TestServer.py:515
UE::RenderViewportFeedback
Definition
SceneView.h:36
Engine
Source
Runtime
RenderCore
Internal
RenderViewportFeedback.h
Generated by
1.9.8