UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
ShaderCompilerPrivate.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3/*=============================================================================
4 ShaderCompilerPrivate.h:
5 To be included by ShaderCompiler*.cpp files that share various variables and functions.
6=============================================================================*/
7
8#pragma once
9
10#include "ShaderCompiler.h"
11#include "DerivedDataCache.h"
13
14#include <atomic>
15
17
20
25
28
29UE::DerivedData::FCacheKey GetGlobalShaderMapKey(const FGlobalShaderMapId& ShaderMapId, EShaderPlatform Platform, const ITargetPlatform* TargetPlatform, TArray<FShaderTypeDependency> const& Dependencies);
31
32// Configuration to retry shader compile through workers after a worker has been abandoned
33static constexpr int32 GSingleThreadedRunsIdle = -1;
34
35#if ENABLE_COOK_STATS
37{
38 extern FCookStats::FDDCResourceUsageStats UsageStats;
40}
41#endif
42
44{
45 extern std::atomic<double> AsyncCompileTimeSec;
46}
47
49namespace ShaderCompiler
50{
51 FString GetTargetPlatformName(const ITargetPlatform* TargetPlatform);
55}
56
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 LLM_DECLARE_TAG(...)
Definition LowLevelMemTracker.h:1116
EShaderPlatform
Definition RHIShaderPlatform.h:11
@ SP_NumPlatforms
Definition RHIShaderPlatform.h:55
FGlobalShaderMap * GGlobalShaderMap_DeferredDeleteCopy[SP_NumPlatforms]
Definition ShaderCompiler.cpp:224
UE::FSharedString GetGlobalShaderMapName(const FGlobalShaderMapId &ShaderMapId, EShaderPlatform Platform, const FString &Key)
bool AreShaderErrorsFatal()
Definition ShaderCompiler.cpp:188
UE::DerivedData::FCacheKey GetGlobalShaderMapKey(const FGlobalShaderMapId &ShaderMapId, EShaderPlatform Platform, const ITargetPlatform *TargetPlatform, TArray< FShaderTypeDependency > const &Dependencies)
FShaderCompilingManager * GShaderCompilingManager
Definition ShaderCompiler.cpp:617
const ITargetPlatform * GGlobalShaderTargetPlatform[SP_NumPlatforms]
Definition ShaderCompiler.cpp:5078
FShaderCompilerStats * GShaderCompilerStats
Definition ShaderCompilerStats.cpp:51
FString GetGlobalShaderMapKeyString(const FGlobalShaderMapId &ShaderMapId, EShaderPlatform Platform, TArray< FShaderTypeDependency > const &Dependencies)
Definition GlobalShader.h:45
Definition GlobalShader.h:173
Definition ShaderCompiler.h:894
Definition Array.h:670
Definition ShaderCompilerPrivate.h:44
std::atomic< double > AsyncCompileTimeSec
Definition ShaderCompiler.cpp:195
bool IsDumpShaderDebugInfoAlwaysEnabled()
Definition ShaderCompiler.cpp:551
bool IsJobCacheDebugValidateEnabled()
Definition ShaderCompilerJobCache.cpp:144
FString GetTargetPlatformName(const ITargetPlatform *TargetPlatform)
Definition ShaderCompiler.cpp:196
bool IsRemoteCompilingAllowed()
Definition ShaderCompiler.cpp:206
Definition ShaderCompiler.h:799