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