public bool Equals(TextureContent x, TextureContent y) { if (x is ImageContent ximg && y is ImageContent yimg) { return(ImageContent.AreEqualByContent(ximg, yimg)); } return(false); }
public static bool AreEqualByContent(ImageContent a, ImageContent b) { return(a._ImageData.AsSpan().SequenceEqual(b._ImageData)); }