public void TestEquals() { TexImage image2 = new TexImage(new IntPtr(), 699104, 512, 512, 1, SiliconStudio.Paradox.Graphics.PixelFormat.BC3_UNorm, 10, 2, TexImage.TextureDimension.Texture2D); Assert.IsTrue(image.Equals(image2)); image2 = new TexImage(new IntPtr(), 699104, 512, 256, 1, SiliconStudio.Paradox.Graphics.PixelFormat.BC3_UNorm, 10, 2, TexImage.TextureDimension.Texture2D); Assert.IsFalse(image.Equals(image2)); }
public void TestEquals() { TexImage image2 = new TexImage(new IntPtr(), 699104, 512, 512, 1, Xenko.Graphics.PixelFormat.BC3_UNorm, 10, 2, TexImage.TextureDimension.Texture2D); Assert.True(image.Equals(image2)); image2 = new TexImage(new IntPtr(), 699104, 512, 256, 1, Xenko.Graphics.PixelFormat.BC3_UNorm, 10, 2, TexImage.TextureDimension.Texture2D); Assert.False(image.Equals(image2)); }
public void LoadParadoxImageTest(string file) { TexImage image = texTool.Load(TestTools.InputTestFolder + file); var pdx = texTool.ConvertToParadoxImage(image); TexImage pdxImage = texTool.Load(pdx); Assert.IsTrue(image.Equals(pdxImage)); pdx.Dispose(); image.Dispose(); pdxImage.Dispose(); }
public void LoadXenkoImageTest(string file) { TexImage image = texTool.Load(Module.PathToInputImages + file); var xk = texTool.ConvertToXenkoImage(image); TexImage xkImage = texTool.Load(xk, false); Assert.True(image.Equals(xkImage)); xk.Dispose(); image.Dispose(); xkImage.Dispose(); }
public void LoadStrideImageTest(string file) { TexImage image = texTool.Load(Module.PathToInputImages + file); var sd = texTool.ConvertToStrideImage(image); TexImage sdImage = texTool.Load(sd, false); Assert.True(image.Equals(sdImage)); sd.Dispose(); image.Dispose(); sdImage.Dispose(); }
public void LoadParadoxImageTest(string file) { TexImage image = texTool.Load(Module.PathToInputImages + file); var pdx = texTool.ConvertToParadoxImage(image); TexImage pdxImage = texTool.Load(pdx, false); Assert.IsTrue(image.Equals(pdxImage)); pdx.Dispose(); image.Dispose(); pdxImage.Dispose(); }