Navigation
API > API/Runtime > API/Runtime/Engine
Categories of fields which should be included in a ShaderMapId or in the output of a FMaterialKeyGeneratorContext. GetShaderMapId, and code recording or emitting fields to a FMaterialKeyGeneratorContext, calls HasAllFlags for the flags relevant to a given field before writing it to the ShaderMapId's ShaderTypes or to the FMaterialKeyGeneratorContext's RecordAndEmit functions.
| Name | EMaterialKeyInclude |
| Type | enum |
| Header File | /Engine/Source/Runtime/Engine/Public/MaterialKeyIncludeEnum.h |
| Include Path | #include "MaterialKeyIncludeEnum.h" |
Syntax
enum EMaterialKeyInclude
{
ShaderDependencies = 0x1,
SourceAndMaterialState = 0x2,
Globals = 0x4,
UObjectData = 0x8,
All = ShaderDependencies | SourceAndMaterialState | Globals | UObjectData,
}
Values
| Name | Remarks |
|---|---|
| ShaderDependencies | Shadertype, shaderpipelinetype, vertexfactortype dependencies are included in the output |
| SourceAndMaterialState | Shader hlsl file hashes are included in the output |
| Globals | Global data that applies to many or all Materials is included in the output. |
| UObjectData | Data stored in UObject exports in .uasset and .umap files is included in the output |
| All |