FSerializedShaderArchive

Portion of shader code archive that's serialize to disk.

Windows
MacOS
Linux

References

Module

RenderCore

Header

/Engine/Source/Runtime/RenderCore/Public/ShaderCodeArchive.h

Include

#include "ShaderCodeArchive.h"

Syntax

class FSerializedShaderArchive

Remarks

Portion of shader code archive that's serialize to disk.

Variables

Name Description

Public variable

TArray< FFileCa...

 

PreloadEntries

An array of preload entries

Public variable

TMap< FSHAHash,...

 

ShaderCodeToAssets

Mapping from shadermap hashes to an array of asset names - this is used for on-disk storage as it is shorter.

Public variable

TArray< FShader...

 

ShaderEntries

An array of all shaders descriptors, deduplicated

Public variable

TArray< FSHAHas...

 

ShaderHashes

Output hashes of all shaders in the library

Public variable

FHashTable

 

ShaderHashTable

Public variable

TArray< uint32 ...

 

ShaderIndices

Flat array of shaders referenced by all shadermaps.

Public variable

TArray< FShader...

 

ShaderMapEntries

An array of a shadermap descriptors. Each shadermap can reference an arbitrary number of shaders

Public variable

TArray< FSHAHas...

 

ShaderMapHashes

Hashes of all shadermaps in the library

Public variable

FHashTable

 

ShaderMapHashTable

Constructors

Name Description

Public function

FSerializedShaderArchive()

Functions

Name Description

Public function

void

 

CollectStatsAndDebugInfo

(
    FDebugStats& OutDebugStats,
    FExtendedDebugStats* OutExtend...
)

Public function

void

 

CreateAsChunkFrom

(
    const FSerializedShaderArchive& Pa...,
    const TSet< FName >& PackagesInChu...,
    TArray< int32 >& OutShaderCodeEntr...
)

Public function Const

void

 

DecompressShader

(
    int32 Index,
    const TArray< TArray< uint8 >>& Sh...,
    TArray< uint8 >& OutDecompressedSh...
)

Public function Const

void

 

DumpContentsInPlaintext

(
    FString& OutText
)

Public function

void

 

Empty()

Public function

void

 

Finalize()

Public function

bool

 

FindOrAddShader

(
    const FSHAHash& Hash,
    int32& OutIndex
)

Public function

bool

 

FindOrAddShaderMap

(
    const FSHAHash& Hash,
    int32& OutIndex,
    const FShaderMapAssetPaths* As...
)

Public function Const

int32

 

FindShader

(
    const FSHAHash& Hash
)

Public function Const

int32

 

FindShaderMap

(
    const FSHAHash& Hash
)

Public function Const

int32

 

FindShaderMapWithKey

(
    const FSHAHash& Hash,
    uint32 Key
)

Public function Const

int32

 

FindShaderWithKey

(
    const FSHAHash& Hash,
    uint32 Key
)

Public function Const

uint32

 

GetAllocatedSize()

Public function Const

int32

 

GetNumShaderMaps()

Public function Const

int32

 

GetNumShaders()

Public function

bool

 

LoadAssetInfo

(
    const FString& Filename
)

Public function

void

 

SaveAssetInfo

(
    FArchive& Ar
)

Public function

void

 

Serialize

(
    FArchive& Ar
)

Classes

Name

Description

Public struct

FDebugStats

Public struct

FExtendedDebugStats

Enums

Name

Description

Public enum

EAssetInfoVersion

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss