public static int GetContentHashCode(ImageBuilder x) { if (x == null) { return(0); } var h = BaseBuilder.GetContentHashCode(x); h ^= x.Content.GetHashCode(); return(h); }
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); }