Navigation
API > API/Runtime > API/Runtime/RenderCore > API/Runtime/RenderCore/FShaderLibraryCooker
Description
Given multiple Cooked Metadata directories will attempt to merge the ShaderByteCode and the ShaderStableInfo into the given OutputDir. It would be expected that the OutputDir is another MetaData directory but this can be any dir. Sub directories for ShaderLibrarySource and PipelineCaches will be automatically generated.
| Name | MergeShaderCodeArchive |
| Type | function |
| Header File | /Engine/Source/Runtime/RenderCore/Public/ShaderCodeLibrary.h |
| Include Path | #include "ShaderCodeLibrary.h" |
| Source | /Engine/Source/Runtime/RenderCore/Private/ShaderCodeLibrary.cpp |
static bool MergeShaderCodeArchive
(
const TArray < FString > & CookedMetadataDirs,
const FString & OutputDir,
TArray < FString > & OutWrittenFiles
)
Parameters
| Name | Remarks |
|---|---|
| CookedMetadataDirs | the cooked metadata directories to merge the shader archives from |
| OutputDir | where to place the union of the shader archives |
| OutWrittenFiles | full path to all the files written |