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 void Gather(MyPassStats other) { Meshes += other.Meshes; Submeshes += other.Submeshes; Instances += other.Instances; Triangles += other.Triangles; ObjectConstantsChanges += other.ObjectConstantsChanges; MaterialConstantsChanges += other.MaterialConstantsChanges; }
internal void Gather(MyPassStats other) { Draws += other.Draws; Billboards += other.Billboards; Instances += other.Instances; Triangles += other.Triangles; ObjectConstantsChanges += other.ObjectConstantsChanges; MaterialConstantsChanges += other.MaterialConstantsChanges; }
internal void Gather(MyPassStats other) { Draws += other.Draws; Submeshes += other.Submeshes; Billboards += other.Billboards; Instances += other.Instances; Triangles += other.Triangles; ObjectConstantsChanges += other.ObjectConstantsChanges; MaterialConstantsChanges += other.MaterialConstantsChanges; }
internal static void GatherStats(MyPassStats stats) { m_passStats.Gather(stats); }
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; } statList[passHash] = stats; } m_passStatsTotals.Gather(stats); }