Example #1
0
        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);
        }
Example #2
0
 internal void Gather(MyPassStats other)
 {
     Meshes    += other.Meshes;
     Submeshes += other.Submeshes;
     Instances += other.Instances;
     Triangles += other.Triangles;
     ObjectConstantsChanges   += other.ObjectConstantsChanges;
     MaterialConstantsChanges += other.MaterialConstantsChanges;
 }
Example #3
0
 internal void Gather(MyPassStats other)
 {
     Meshes += other.Meshes;
     Submeshes += other.Submeshes;
     Instances += other.Instances;
     Triangles += other.Triangles;
     ObjectConstantsChanges += other.ObjectConstantsChanges;
     MaterialConstantsChanges += other.MaterialConstantsChanges;
 }
Example #4
0
 internal void Gather(MyPassStats other)
 {
     Draws                    += other.Draws;
     Billboards               += other.Billboards;
     Instances                += other.Instances;
     Triangles                += other.Triangles;
     ObjectConstantsChanges   += other.ObjectConstantsChanges;
     MaterialConstantsChanges += other.MaterialConstantsChanges;
 }
Example #5
0
 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 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);
        }