powervr-graphics / Native_SDK

C++ cross-platform 3D graphics SDK. Includes demos & helper code (resource loading etc.) to speed up development of Vulkan, OpenGL ES 2.0 & 3.x applications
https://docs.imgtec.com/sdk-documentation/html/introduction.html
MIT License
705 stars 199 forks source link

pvrtexture::GenerateMIPMaps() fails to generate #17

Closed sasmaster closed 5 years ago

sasmaster commented 7 years ago

I am loading a texture data from tga image file.Sizes 512x512 ,RGB 8 bit per channel.The texture is correct both on load and on save without mipmaps generation.However, when I try to do this:

   ```

pvrtexture::CPVRTextureHeader header1(pvrtexture::PVRStandard8PixelTypeRGB.PixelTypeID, height, width); pvrtexture::CPVRTexture texture(header1, imageData); bool result = pvrtexture::GenerateMIPMaps(texture, pvrtexture::EResizeMode::eResizeCubic, PVRTEX_ALLMIPLEVELS);


          It returns false.
UPDATE:
Sorry,it DOES work with RGBA textures.So the input texture must be RGBA always? 
PVRDevTech commented 5 years ago

Legacy issue, said functions no longer exist. If there is a misunderstanding on this please reopen.