UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
SlateRHIRenderer.cpp File Reference
#include "SlateRHIRenderer.h"
#include "Fonts/FontCache.h"
#include "SlateRHIRenderingPolicy.h"
#include "SlateRHIRendererSettings.h"
#include "Misc/ScopeLock.h"
#include "Modules/ModuleManager.h"
#include "Styling/CoreStyle.h"
#include "Widgets/SWindow.h"
#include "Framework/Application/SlateApplication.h"
#include "EngineGlobals.h"
#include "Engine/AssetManager.h"
#include "Engine/TextureRenderTarget2D.h"
#include "Engine/UserInterfaceSettings.h"
#include "FX/SlateFXSubsystem.h"
#include "FX/SlateRHIPostBufferProcessor.h"
#include "Materials/MaterialRenderProxy.h"
#include "MaterialShared.h"
#include "RendererInterface.h"
#include "StaticBoundShaderState.h"
#include "SceneInterface.h"
#include "SceneUtils.h"
#include "RHIStaticStates.h"
#include "UnrealEngine.h"
#include "GlobalShader.h"
#include "ScreenRendering.h"
#include "SlateShaders.h"
#include "Rendering/ElementBatcher.h"
#include "Rendering/SlateRenderer.h"
#include "RenderResource.h"
#include "RenderingThread.h"
#include "RHIResources.h"
#include "RHIUtilities.h"
#include "StereoRendering.h"
#include "SlateNativeTextureResource.h"
#include "TextureResource.h"
#include "VolumeRendering.h"
#include "PipelineStateCache.h"
#include "EngineModule.h"
#include "Interfaces/ISlate3DRenderer.h"
#include "Interfaces/SlateRHIRenderingPolicyInterface.h"
#include "Slate/SlateTextureAtlasInterface.h"
#include "Types/ReflectionMetadata.h"
#include "CommonRenderResources.h"
#include "RenderTargetPool.h"
#include "RendererUtils.h"
#include "HAL/LowLevelMemTracker.h"
#include "Rendering/RenderingCommon.h"
#include "IHeadMountedDisplayModule.h"
#include "HDRHelper.h"
#include "RenderCore.h"
#include "DataDrivenShaderPlatformInfo.h"
#include "SlatePostProcessor.h"
#include "Stats/ThreadIdleStats.h"
#include "VT/VirtualTextureFeedbackResource.h"

Classes

struct  FSlateViewportInfo
 
struct  FSlateDrawWindowPassInputs
 
struct  FSlateDrawWindowPassOutputs
 
class  FCompositeShader
 
class  FCompositePS
 
class  FCompositeCS
 
struct  FSlateDrawWindowsCommand
 

Macros

#define MIN_VIEWPORT_SIZE   8
 
#define MAX_VIEWPORT_SIZE   16384
 

Functions

 DECLARE_CYCLE_STAT (TEXT("Total Render Thread time including dependent waits"), STAT_RenderThreadCriticalPath, STATGROUP_Threading)
 
 CSV_DEFINE_CATEGORY (RenderThreadIdle, true)
 
 CSV_DECLARE_CATEGORY_MODULE_EXTERN (SLATECORE_API, Slate)
 
 DECLARE_GPU_DRAWCALL_STAT_NAMED (SlateUI, TEXT("Slate UI"))
 
FMatrix CreateSlateProjectionMatrix (uint32 Width, uint32 Height)
 
bool SupportsCompositeUIWithSceneHDR (const EShaderPlatform Platform)
 
bool CompositeUIWithSceneHDR ()
 
 IMPLEMENT_GLOBAL_SHADER (FCompositePS, "/Engine/Private/CompositeUIPixelShader.usf", "Main", SF_Pixel)
 
 IMPLEMENT_GLOBAL_SHADER (FCompositeCS, "/Engine/Private/CompositeUIPixelShader.usf", "CompositeUICS", SF_Compute)
 

Variables

TAutoConsoleVariable< int32CVarShowSlateOverdraw (TEXT("Slate.ShowOverdraw"), 0, TEXT("0: Don't show overdraw, 1: Show Overdraw"), ECVF_RenderThreadSafe)
 
TAutoConsoleVariable< int32CVarShowSlateBatching (TEXT("Slate.ShowBatching"), 0, TEXT("0: Don't show batching, 1: Show Batching"), ECVF_RenderThreadSafe)
 
bool GSlateWireframe = false
 

Macro Definition Documentation

◆ MAX_VIEWPORT_SIZE

#define MAX_VIEWPORT_SIZE   16384

◆ MIN_VIEWPORT_SIZE

#define MIN_VIEWPORT_SIZE   8

Function Documentation

◆ CompositeUIWithSceneHDR()

bool CompositeUIWithSceneHDR ( )

◆ CreateSlateProjectionMatrix()

FMatrix CreateSlateProjectionMatrix ( uint32  Width,
uint32  Height 
)

◆ CSV_DECLARE_CATEGORY_MODULE_EXTERN()

CSV_DECLARE_CATEGORY_MODULE_EXTERN ( SLATECORE_API  ,
Slate   
)

◆ CSV_DEFINE_CATEGORY()

CSV_DEFINE_CATEGORY ( RenderThreadIdle  ,
true   
)

◆ DECLARE_CYCLE_STAT()

◆ DECLARE_GPU_DRAWCALL_STAT_NAMED()

DECLARE_GPU_DRAWCALL_STAT_NAMED ( SlateUI  ,
TEXT("Slate UI"  
)

◆ IMPLEMENT_GLOBAL_SHADER() [1/2]

IMPLEMENT_GLOBAL_SHADER ( FCompositeCS  ,
"/Engine/Private/CompositeUIPixelShader.usf"  ,
"CompositeUICS"  ,
SF_Compute   
)

◆ IMPLEMENT_GLOBAL_SHADER() [2/2]

IMPLEMENT_GLOBAL_SHADER ( FCompositePS  ,
"/Engine/Private/CompositeUIPixelShader.usf"  ,
"Main"  ,
SF_Pixel   
)

◆ SupportsCompositeUIWithSceneHDR()

bool SupportsCompositeUIWithSceneHDR ( const EShaderPlatform  Platform)

Variable Documentation

◆ CVarShowSlateBatching

TAutoConsoleVariable< int32 > CVarShowSlateBatching(TEXT("Slate.ShowBatching"), 0, TEXT("0: Don't show batching, 1: Show Batching"), ECVF_RenderThreadSafe) ( TEXT("Slate.ShowBatching")  ,
,
TEXT("0: Don't show batching, 1: Show Batching" ,
ECVF_RenderThreadSafe   
)

◆ CVarShowSlateOverdraw

TAutoConsoleVariable< int32 > CVarShowSlateOverdraw(TEXT("Slate.ShowOverdraw"), 0, TEXT("0: Don't show overdraw, 1: Show Overdraw"), ECVF_RenderThreadSafe) ( TEXT("Slate.ShowOverdraw")  ,
,
TEXT("0: Don't show overdraw, 1: Show Overdraw" ,
ECVF_RenderThreadSafe   
)

◆ GSlateWireframe

bool GSlateWireframe = false