public void ComputeTextureSize_UncompressedWithAlphaA_CorrectResults() { long size = TextureUtils.ComputeTextureSize(256, 256, TextureCompressionFormat.UncompressedWithAlpha); Assert.AreEqual(349524, size); }
public void ComputeMipmapSize_NotPowerOf2_ThrowsException() { Assert.Throws(typeof(Exception), () => TextureUtils.ComputeTextureSize(255, 256)); }
public void ComputeTextureSize_UncompressedA_CorrectResults() { long size = TextureUtils.ComputeTextureSize(256, 256, TextureCompressionFormat.Uncompressed); Assert.AreEqual(262143, size); }