On-the-fly PVRTC compression on iOS

I am writing an iPhone application that is pretty heavy for GPU memory. Some textures are created procedurally by the application, which means that I cannot compress them in PVRTC to reduce their size on the GPU (and therefore memory). Does anyone know a library that does this? The closest I found is PVRTexLib ( http://www.imgtec.com/powervr/insider/powervr-pvrtexlib.asp ), but this is for MacOSX, not iOS.

I found this question that is similar: Convert .png to PVRTC * on * iPhone , but they took it in the other direction (why you shouldn’t want to do this). However, my application uses OpenGL, so I greatly benefit from using PVRTC.

Does anyone know about such a library?

+4
source share
1 answer

PVRTexTool from Imagination includes an SDK and a precompiled library for a number of platforms, including leverage. This must be associated with the iPhone executable.

https://community.imgtec.com/developers/powervr/tools/pvrtextool/

However, perhaps more interestingly, can you write shaders that redirect colors as needed? You do not need to recompress the texture or change it at all if you can apply the desired function in the shader.

0
source

All Articles