/Engine/Source/Runtime/RenderCore/Public/GlobalShader.h
Checks if the shader type should be cached for a particular platform.
True if this shader type should be cached.
bool ShouldCompilePermutation ( EShaderPlatform Platform, int32 PermutationId, EShaderPermutationFlags Flags ) const