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