UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
IRenderCaptureProvider.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3#pragma once
4
6
8class FViewport;
9
11{
12public:
19 {
20 static FName FeatureName = FName(TEXT("RenderCaptureProvider"));
21 return FeatureName;
22 }
23
29 static inline bool IsAvailable()
30 {
31 // This function is accessible from the render and RHI threads, so lock the list of modular features before calling GetModularFeature
34 }
35
42 static inline IRenderCaptureProvider& Get()
43 {
44 // This function is accessible from the render and RHI threads, so lock the list of modular features before calling GetModularFeature
47 }
48
50 virtual bool CanSupportSubmissionThread() const { return true; }
51
56 {
57 // Set to launch the capture viewing application. Whether this is supported depends on the underlying capture tool.
59 };
60
71 virtual void CaptureFrame(FViewport* InViewport = nullptr, uint32 InFlags = 0, FString const& InDestFileName = FString()) = 0;
72
80 virtual void BeginCapture(FRHICommandListImmediate* InRHICommandList, uint32 InFlags = 0, FString const& InDestFileName = FString()) = 0;
81
89};
#define TEXT(x)
Definition Platform.h:1272
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
uint32_t uint32
Definition binka_ue_file_header.h:6
Definition NameTypes.h:617
Definition RHICommandList.h:4626
Definition UnrealClient.h:412
Definition IModularFeature.h:12
static CORE_API IModularFeatures & Get()
Definition ModularFeatures.cpp:9
bool IsModularFeatureAvailable(const FName Type)
Definition IModularFeatures.h:39
TModularFeature & GetModularFeature(const FName Type)
Definition IModularFeatures.h:54
Definition IRenderCaptureProvider.h:11
ECaptureFlags
Definition IRenderCaptureProvider.h:56
@ ECaptureFlags_Launch
Definition IRenderCaptureProvider.h:58
static FName GetModularFeatureName()
Definition IRenderCaptureProvider.h:18
virtual void BeginCapture(FRHICommandListImmediate *InRHICommandList, uint32 InFlags=0, FString const &InDestFileName=FString())=0
static bool IsAvailable()
Definition IRenderCaptureProvider.h:29
virtual void CaptureFrame(FViewport *InViewport=nullptr, uint32 InFlags=0, FString const &InDestFileName=FString())=0
virtual bool CanSupportSubmissionThread() const
Definition IRenderCaptureProvider.h:50
static IRenderCaptureProvider & Get()
Definition IRenderCaptureProvider.h:42
virtual void EndCapture(FRHICommandListImmediate *InRHICommandList)=0
Definition IModularFeatures.h:89