Adding , “RHI”, “RenderCore” to the PublicDependencyModuleName line the code now compiles without errors.