/Engine/Source/Runtime/Engine/Public/MaterialShaderType.h
Checks if the shader type should be cached for a particular platform and material.
True if this shader type should be cached.
bool ShouldCompilePermutation ( EShaderPlatform Platform, const [FMaterialShaderParameters](API\Runtime\Engine\FMaterialShaderParameters) & MaterialParameters, int32 PermutationId, EShaderPermutationFlags Flags ) const