PArrot's | AndreyAs44
PArrot's | AndreyAs44
case TextureFormat.R8: return 8; case TextureFormat.R16: return 16; case TextureFormat.BC4: return 16; case TextureFormat.BC5: return 8; case TextureFormat.BC7: return 8; case TextureFormat.RFloat: return 32; case TextureFormat.RG16: return 16; case TextureFormat.RG32:...
int CheckIsBlock(TextureFormat format) { switch (format) { case TextureFormat.ASTC_HDR_4x4: return 16; case TextureFormat.ASTC_HDR_5x5: return 25; case TextureFormat.ASTC_HDR_6x6: return 36; case TextureFormat.ASTC_HDR_8x8: return 64; case TextureFormat.ASTC_HDR_10x10: return 100; case TextureFormat.ASTC_HDR_12x12: return...
int tWidth = tTexture.width; int tHeight = tTexture.height; if (tTexture is Texture2D) { Texture2D tTex2D = tTexture as Texture2D; if (CheckIsBlock(tTex2D.format) == 0) { int bitsPerPixel = GetBitsPerPixel(tTex2D.format); int mipMapCount...
Hi, I don't remember very well anymore, the problem was calculating the size of textures. In this case, the build was for android, ASTC texture formats (automatic most optimal choice...