UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
DumpGPU.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3#pragma once
4
5#include "Misc/Build.h"
7#include "UObject/NameTypes.h"
8
10{
11public:
12
14 {
15 static constexpr const TCHAR* kServiceFileName = TEXT("Base/DumpService.json");
16
17 FString Type;
18 FString LocalPath;
19 FString Time;
20
23
26 };
27
28 virtual void UploadDump(const FDumpParameters& Parameters) = 0;
29 virtual ~IDumpGPUUploadServiceProvider() = default;
30
32};
33
34#if WITH_DUMPGPU
35
37{
38
40
41RENDERCORE_API bool IsDumpingFrame();
42
44
45class FDumpScope
46{
47public:
48 RENDERCORE_API FDumpScope(bool bInCondition = true);
49
51 {
52 if (bCondition)
53 {
54 // Tick the dump GPU system again, which will end the active dump.
56 }
57 }
58
59private:
60 bool bCondition;
61};
62
63} // namespace UE::RenderCore::DumpGPU
64
65#else
66
68{
69
71{
72public:
73 FDumpScope(bool bCondition = true) {}
74};
75
76} // namespace UE::RenderCore::DumpGPU
77
78#endif // WITH_DUMPGPU
#define TEXT(x)
Definition Platform.h:1272
FPlatformTypes::TCHAR TCHAR
Either ANSICHAR or WIDECHAR, depending on whether the platform supports wide characters or the requir...
Definition Platform.h:1135
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
Definition NameTypes.h:617
Definition WildcardString.h:18
Definition DumpGPU.h:10
static RENDERCORE_API IDumpGPUUploadServiceProvider * GProvider
Definition DumpGPU.h:31
virtual ~IDumpGPUUploadServiceProvider()=default
virtual void UploadDump(const FDumpParameters &Parameters)=0
FDumpScope(bool bCondition=true)
Definition DumpGPU.h:73
Definition DumpGPU.h:68
FString LocalPath
Definition DumpGPU.h:18
static constexpr const TCHAR * kServiceFileName
Definition DumpGPU.h:15
FString Time
Definition DumpGPU.h:19
RENDERCORE_API bool DumpServiceParametersFile() const
Definition DumpGPU.cpp:48
FName CompressionName
Definition DumpGPU.h:21
FString Type
Definition DumpGPU.h:17
RENDERCORE_API FString DumpServiceParametersFileContent() const
Definition DumpGPU.cpp:33
FWildcardString CompressionFiles
Definition DumpGPU.h:22