Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/FMaterial > API/Runtime/Engine/FMaterial/BeginCacheShaders
References
| Module | Engine |
| Header | /Engine/Source/Runtime/Engine/Public/MaterialShared.h |
| Include | #include "MaterialShared.h" |
| Source | /Engine/Source/Runtime/Engine/Private/Materials/MaterialShared.cpp |
void BeginCacheShaders
&40;
const FMaterialShaderMapId & ShaderMapId,
EShaderPlatform Platform,
EMaterialShaderPrecompileMode PrecompileMode,
const ITargetPlatform &42; TargetPlatform,
TUniqueFunction< void(boolbSuccess)> && CompletionCallback
&41;
Remarks
Begins caching the material shaders for the given static parameter set and platform. This is used by material resources of UMaterialInstances.
Caches the material shaders for the given static parameter set and platform. This is used by material resources of UMaterialInstances.