Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/FMaterialShaderMap
Description
Attempts to load the shader map for the given material from the Derived Data Cache. If InOutShaderMap is valid, attempts to load the individual missing shaders instead. Returns (via OutDDCKeyDesc parameter) a helpful string to debug the DDC key and parameters
| Name | LoadFromDerivedDataCache |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Public/MaterialShared.h |
| Include Path | #include "MaterialShared.h" |
| Source | /Engine/Source/Runtime/Engine/Private/Materials/MaterialShader.cpp |
static void LoadFromDerivedDataCache
(
const FMaterial * Material,
const FMaterialShaderMapId & ShaderMapId,
EShaderPlatform Platform,
const ITargetPlatform * TargetPlatform,
TRefCountPtr < FMaterialShaderMap > & InOutShaderMap,
FString & OutDDCKeyDesc
)