Navigation
API > API/Runtime > API/Runtime/RenderCore > API/Runtime/RenderCore/FShaderLibraryCooker
Description
Saves a single chunk of the collected shader code (per shader platform). Does not save SCL.CSV info. This code path is only called if we're chunking. FIXME: this function does not write build metadata
| Name | SaveShaderLibraryChunk |
| 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 SaveShaderLibraryChunk
(
int32 ChunkId,
const TSet< FName > & InPackagesInChunk,
const ITargetPlatform * TargetPlatform,
const FString & SandboxDestinationPath,
const FString & SandboxMetadataPath,
TArray < FString > & OutChunkFilenames,
bool & bOutHasData
)
true if successful
Parameters
| Name | Remarks |
|---|---|
| ChunkId | the chunk id |
| InPackagesInChunk | packages that belong to the chunk |
| TargetPlatform | target platform |
| SandboxDestinationPath | where to put the .ushaderbytecode file(s) |
| OutChunkFilenames | array where the function will append the full paths of the written files |
| bOutHasData | Reports whether any files were written to OutChunkFilenames |