예제 #1
0
            public bool Equals(TextureContent x, TextureContent y)
            {
                if (x is ImageContent ximg && y is ImageContent yimg)
                {
                    return(ImageContent.AreEqualByContent(ximg, yimg));
                }

                return(false);
            }
예제 #2
0
 public static bool AreEqualByContent(ImageContent a, ImageContent b)
 {
     return(a._ImageData.AsSpan().SequenceEqual(b._ImageData));
 }