UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
PipelineCacheUtilities.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"
6
7// cooked games may want to load key files for extra information about the PSOs
8#define UE_WITH_PIPELINE_CACHE_UTILITIES (WITH_EDITOR || !UE_BUILD_SHIPPING)
9#if UE_WITH_PIPELINE_CACHE_UTILITIES
10
11#include "Containers/Array.h"
12#include "Containers/Map.h"
13#include "Containers/Set.h"
16#include "CoreMinimal.h"
17#include "HAL/Platform.h"
18#include "RHIDefinitions.h"
19#include "ShaderCodeLibrary.h"
20
21class FName;
22class FSHAHash;
23class ITargetPlatform;
26
27namespace UE
28{
29namespace PipelineCacheUtilities
30{
31#if WITH_EDITOR // limit what's compiled for the cooked games
32
34 struct FPermutation
35 {
38 };
39
41 struct FPermsPerPSO
42 {
49
51 : PSO(nullptr)
52 {
54 {
55 ActivePerSlot[Index] = false;
56 }
57 }
58 };
59
60#endif // WITH_EDITOR
61
70
71#if WITH_EDITOR // limit what's compiled for the cooked games
72
80 RENDERCORE_API bool SaveStableKeysFile(const FStringView& Filename, const FStableShaderSet& Values);
81
92
104
120
132
145 RENDERCORE_API bool LoadChunkInfo(const FString& Filename, const FString& InShaderFormat, int32 &OutChunkId, FString& OutChunkedCacheFilename, TSet<FName>& OutPackages);
146
147#endif // WITH_EDITOR
148
149}
150};
151
152#endif // UE_WITH_PIPELINE_CACHE_UTILITIES
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
@ SF_NumFrequencies
Definition RHIDefinitions.h:216
TSet< TUniquePtr< FStableShaderKeyAndValue >, FStableShaderKeyFuncs > FStableShaderSet
Definition ShaderCodeLibrary.h:192
Definition NameTypes.h:617
Definition SecureHash.h:226
Definition Array.h:670
RENDERCORE_API bool LoadStableKeysFile(const FStringView &Filename, TArray< FStableShaderKeyAndValue > &InOutArray)
Definition AdvancedWidgetsModule.cpp:13
U16 Index
Definition radfft.cpp:71
Definition PipelineFileCache.h:106
Definition ShaderCodeLibrary.h:118