Navigation
API > API/Runtime > API/Runtime/RenderCore
Portion of shader code archive that's serialize to disk.
| Name | FSerializedShaderArchive |
| Type | class |
| Header File | /Engine/Source/Runtime/RenderCore/Public/ShaderCodeArchive.h |
| Include Path | #include "ShaderCodeArchive.h" |
Syntax
class FSerializedShaderArchive
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FSerializedShaderArchive() |
ShaderCodeArchive.h |
Structs
| Name | Remarks |
|---|---|
| FDebugStats | |
| FExtendedDebugStats | |
| FShaderTypeHashes |
Enums
Public
| Name | Remarks |
|---|---|
| EAssetInfoVersion |
Typedefs
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| TArrayType | TArray< T > | ShaderCodeArchive.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| PreloadEntries | TArrayType< FFileCachePreloadEntry > | An array of entries for the bytes of shadercode that need to be preloaded for a shadermap. | ShaderCodeArchive.h | |
| ShaderCodeToAssets | TMap< FSHAHash, FShaderMapAssetPaths > | Mapping from shadermap hashes to an array of asset names - this is used for on-disk storage as it is shorter. | ShaderCodeArchive.h | |
| ShaderEntries | TArrayType< FShaderCodeEntry > | An array of all shaders descriptors, deduplicated | ShaderCodeArchive.h | |
| ShaderHashes | TArrayType< FSHAHash > | Output hashes of all shaders in the library | ShaderCodeArchive.h | |
| ShaderHashTable | FHashTable | ShaderCodeArchive.h | ||
| ShaderIndices | TArrayType< uint32 > | Flat array of shaders referenced by all shadermaps. | ShaderCodeArchive.h | |
| ShaderMapEntries | TArrayType< FShaderMapEntry > | An array of a shadermap descriptors. Each shadermap can reference an arbitrary number of shaders | ShaderCodeArchive.h | |
| ShaderMapHashes | TArrayType< FSHAHash > | Hashes of all shadermaps in the library | ShaderCodeArchive.h | |
| ShaderMapHashTable | FHashTable | ShaderCodeArchive.h | ||
| ShaderTypes | TArray< FShaderTypeHashes > | Array of all shader type hashes which deduplicated to each individual shader; indexed as ShaderEntries array | ShaderCodeArchive.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void CollectStatsAndDebugInfo
(
FDebugStats& OutDebugStats, |
ShaderCodeArchive.h | ||
void CreateAsChunkFrom
(
const FSerializedShaderArchive& Parent, |
ShaderCodeArchive.h | ||
void DecompressShader
(
int32 Index, |
ShaderCodeArchive.h | ||
void DumpContentsInPlaintext
(
FString& OutText |
ShaderCodeArchive.h | ||
void Empty() |
ShaderCodeArchive.h | ||
void EmptyShaderMaps() |
ShaderCodeArchive.h | ||
void Finalize() |
ShaderCodeArchive.h | ||
bool FindOrAddShader
(
const FSHAHash& Hash, |
ShaderCodeArchive.h | ||
bool FindOrAddShaderMap
(
const FSHAHash& Hash, |
ShaderCodeArchive.h | ||
int32 FindShader
(
const FSHAHash& Hash |
ShaderCodeArchive.h | ||
int32 FindShaderMap
(
const FSHAHash& Hash |
ShaderCodeArchive.h | ||
int32 FindShaderMapWithKey
(
const FSHAHash& Hash, |
ShaderCodeArchive.h | ||
int32 FindShaderWithKey
(
const FSHAHash& Hash, |
ShaderCodeArchive.h | ||
int64 GetAllocatedSize() |
ShaderCodeArchive.h | ||
int32 GetNumShaderMaps() |
ShaderCodeArchive.h | ||
int32 GetNumShaders() |
ShaderCodeArchive.h | ||
const TArrayView< const FFileCachePreloadEntry > GetPreloadEntries() |
ShaderCodeArchive.h | ||
const TArrayView< const FShaderCodeEntry > GetShaderEntries() |
ShaderCodeArchive.h | ||
const TArrayView< const FSHAHash > GetShaderHashes() |
ShaderCodeArchive.h | ||
const TArrayView< const uint32 > GetShaderIndices() |
ShaderCodeArchive.h | ||
const TArrayView< const FShaderMapEntry > GetShaderMapEntries() |
ShaderCodeArchive.h | ||
const TArrayView< const FSHAHash > GetShaderMapHashes() |
ShaderCodeArchive.h | ||
bool IsEmpty() |
ShaderCodeArchive.h | ||
bool LoadAssetInfo
(
const FString& Filename |
ShaderCodeArchive.h | ||
bool LoadAssetInfo
(
FArchive* Ar |
ShaderCodeArchive.h | ||
void RemoveLastAddedShader() |
ShaderCodeArchive.h | ||
void SaveAssetInfo
(
FArchive& Ar |
ShaderCodeArchive.h | ||
void Serialize
(
FArchive& Ar |
ShaderCodeArchive.h |