Пример #1
0
        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));
        }
Пример #2
0
        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));
        }
Пример #3
0
        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();
        }
Пример #4
0
        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();
        }
Пример #5
0
        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();
        }
Пример #6
0
        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();
        }