예제 #1
0
        public static int GetContentHashCode(ImageBuilder x)
        {
            if (x == null)
            {
                return(0);
            }

            var h = BaseBuilder.GetContentHashCode(x);

            h ^= x.Content.GetHashCode();

            return(h);
        }
예제 #2
0
        public static int GetContentHashCode(TextureBuilder x)
        {
            if (x == null)
            {
                return(0);
            }

            var h = BaseBuilder.GetContentHashCode(x);

            h ^= x.CoordinateSet.GetHashCode();
            h ^= x.MinFilter.GetHashCode();
            h ^= x.MagFilter.GetHashCode();
            h ^= x.WrapS.GetHashCode();
            h ^= x.WrapT.GetHashCode();

            h ^= ImageBuilder.GetContentHashCode(x._PrimaryImageContent);
            h ^= ImageBuilder.GetContentHashCode(x._FallbackImageContent);

            return(h);
        }