public void CanHandleRequestTest() { TexImage image = LoadInput("TextureArray_WMipMaps_ATC_RGBA_Explicit.pdx"); Assert.IsTrue(library.CanHandleRequest(image, new DecompressingRequest())); Assert.IsTrue(library.CanHandleRequest(image, new CompressingRequest(SiliconStudio.Paradox.Graphics.PixelFormat.ATC_RGBA_Explicit))); Assert.IsFalse(library.CanHandleRequest(image, new CompressingRequest(SiliconStudio.Paradox.Graphics.PixelFormat.BC3_UNorm))); image.Dispose(); }
public void CanHandleRequestTest() { TexImage image = LoadInput("TextureArray_WMipMaps_ATC_RGBA_Explicit.xk"); Assert.True(library.CanHandleRequest(image, new DecompressingRequest(false))); Assert.True(library.CanHandleRequest(image, new CompressingRequest(Xenko.Graphics.PixelFormat.ATC_RGBA_Explicit))); Assert.False(library.CanHandleRequest(image, new CompressingRequest(Xenko.Graphics.PixelFormat.BC3_UNorm))); image.Dispose(); }