UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
SlateRHIRendererSettings.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3#pragma once
4
5#include "CoreMinimal.h"
8#include "Misc/EnumRange.h"
9#include "UObject/Object.h"
13
14#include "SlateRHIRendererSettings.generated.h"
15
16#define UE_API SLATERHIRENDERER_API
17
20
24UENUM(BlueprintType)
26{
28 Full = 0,
30 Half = 1
31};
32
37USTRUCT(BlueprintType, meta=(HiddenByDefault, DisableSplitPin))
39{
41
42public:
43
45
47 friend class USlateFXSubsytem;
48
49public:
50
52 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category=BufferSettings, meta=(PinHiddenByDefault))
53 uint8 bEnabled:1;
54
56 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category=BufferSettings)
58
60 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = BufferSettings, Meta = (AllowAbstract = false))
62
64
66 UPROPERTY()
67 FString PathToSlatePostRT;
68
69public:
70
72 const FString& GetPathToSlatePostRT() const { return PathToSlatePostRT; }
73
74private:
75
78 TObjectPtr<UTextureRenderTarget2D> CachedSlatePostRT;
79
81 bool bLoadAttempted:1;
82};
83
87UCLASS(MinimalAPI, config = Game, defaultconfig)
89{
91
92public:
94 {
96 {
97 return nullptr;
98 }
100 }
101
103 {
105 {
106 return nullptr;
107 }
109 }
110
111public:
112
115
116 //~ Begin UObject Interface.
117 UE_API virtual void BeginDestroy() override;
118 //~ End UObject Interface.
119
120public:
121
123 UFUNCTION(BlueprintCallable, Category = "SlateFX")
124 UE_API FSlatePostSettings& GetMutableSlatePostSetting(ESlatePostRT InPostBufferBit);
125
127 UFUNCTION(BlueprintCallable, Category = "SlateFX")
128 UE_API const FSlatePostSettings& GetSlatePostSetting(ESlatePostRT InPostBufferBit) const;
129
130public:
131
134
137
139 UE_API const TMap<ESlatePostRT, FSlatePostSettings>& GetSlatePostSettings() const;
140
142 UE_API int32 GetSlatePostBufferDownscaleFactor(ESlatePostRT InPostBufferBit) const;
143
144private:
145
154 // Map is nice since needs no editor customization. After initial run there should be no more than 5 lookups each frame.
155 UPROPERTY(config, EditAnywhere, EditFixedSize, Category = "PostProcessing")
156 TMap<ESlatePostRT, FSlatePostSettings> SlatePostSettings;
157};
158
159#undef UE_API
FPlatformTypes::int32 int32
A 32-bit signed integer.
Definition Platform.h:1125
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
#define UPROPERTY(...)
UObject definition macros.
Definition ObjectMacros.h:744
#define GENERATED_BODY(...)
Definition ObjectMacros.h:765
#define UFUNCTION(...)
Definition ObjectMacros.h:745
#define UCLASS(...)
Definition ObjectMacros.h:776
#define UENUM(...)
Definition ObjectMacros.h:749
#define USTRUCT(...)
Definition ObjectMacros.h:746
ESlatePostResolution
Definition SlateRHIRendererSettings.h:26
#define UE_API
Definition SlateRHIRendererSettings.h:16
ESlatePostRT
Definition SlateRendererTypes.h:15
uint8_t uint8
Definition binka_ue_file_header.h:8
Definition UnrealString.h.inl:34
Definition SubclassOf.h:30
Definition DeveloperSettings.h:24
Definition SlateRHIPostBufferProcessor.h:75
Definition SlateRHIRendererSettings.h:89
static const USlateRHIRendererSettings * Get()
Definition SlateRHIRendererSettings.h:93
static USlateRHIRendererSettings * GetMutable()
Definition SlateRHIRendererSettings.h:102
Definition TextureRenderTarget2D.h:104
@ false
Definition radaudio_common.h:23
Definition SlateRHIRendererSettings.h:39
Definition ObjectPtr.h:488