コード例 #1
0
        public void ComputeTextureSize_UncompressedWithAlphaA_CorrectResults()
        {
            long size = TextureUtils.ComputeTextureSize(256, 256, TextureCompressionFormat.UncompressedWithAlpha);

            Assert.AreEqual(349524, size);
        }
コード例 #2
0
 public void ComputeMipmapSize_NotPowerOf2_ThrowsException()
 {
     Assert.Throws(typeof(Exception), () => TextureUtils.ComputeTextureSize(255, 256));
 }
コード例 #3
0
        public void ComputeTextureSize_UncompressedA_CorrectResults()
        {
            long size = TextureUtils.ComputeTextureSize(256, 256, TextureCompressionFormat.Uncompressed);

            Assert.AreEqual(262143, size);
        }