Example #1
0
        public static float Sum(AnimationJobCache cache, CacheIndex index, int count)
        {
            if (count == 0)
            {
                return(0f);
            }

            float sum = 0f;

            for (int i = 0; i < count; ++i)
            {
                sum += cache.GetRaw(index, i);
            }

            return(sum);
        }