FMaterialShaderMap::LoadFromDerivedDataCache

Attempts to load the shader map for the given material from the Derived Data Cache.

Windows
MacOS
Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Public/MaterialShared.h

Include

#include "MaterialShared.h"

Source

/Engine/Source/Runtime/Engine/Private/Materials/MaterialShader.cpp

Syntax

static void LoadFromDerivedDataCache
(
    const FMaterial * Material,
    const FMaterialShaderMapId & ShaderMapId,
    EShaderPlatform Platform,
    const ITargetPlatform * TargetPlatform,
    TRefCountPtr< FMaterialShaderMap > & InOutShaderMap,
    FString & OutDDCKeyDesc
)

Remarks

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

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss