internal static void GatherPassStats(int passHash, string passName, MyPassStats stats) { if (passName != null) { Dictionary <int, MyPassStats> statList; if (!m_passStats.TryGetValue(passName, out statList)) { statList = new Dictionary <int, MyPassStats>(); m_passStats[passName] = statList; } MyPassStats passStats; if (statList.TryGetValue(passHash, out passStats)) { passStats.Gather(stats); statList[passHash] = passStats; } else { statList[passHash] = stats; } } m_passStatsTotals.Gather(stats); }
internal static void GatherStats(MyPassStats stats) { m_passStats.Gather(stats); }