Navigation
API > API/Runtime > API/Runtime/RenderCore
Descriptor when loading a ShaderLibrary during cooking for which operation is loading the ShaderLibrary. When the operation is loading data from previous incremental cooks, we have more strict validation requirements and we ignore data for stale Assets that have been recooked. Smaller values are newer sources and override larger values which come from older (more stale) sources.
| Name | ShaderCodeArchive::ECookShaderLibrarySource |
| Type | enum |
| Header File | /Engine/Source/Runtime/RenderCore/Public/ShaderMapAssetAssociation.h |
| Include Path | #include "ShaderMapAssetAssociation.h" |
Syntax
namespace ShaderCodeArchive
{
enum ECookShaderLibrarySource
{
CurrentCook = 0,
PatchBase,
PreviousIncremental,
}
}
Values
| Name | Remarks |
|---|---|
| CurrentCook | The data is provided by compilation that executed during the current cook; this is the most up-to-date. |
| PatchBase | The current cook is a DLC cook and the data being provided came from the basegame cook. |
| PreviousIncremental | The data was written to the ShaderLibrary artifacts in a previous incremental cook. |