I use GetPixelBilinear to read from several textures. Works fine on Android & PC with their default formats (RGBA Compressed ETC2 8 bits & RGBA Compressed DXT5, respectively).
But on iOS, if I use the default format (RGBA Compressed PVRTC 4 bits) it errors with “Unsupported GraphicsFormat(117) for GetPixel operations.” I switched to the Compressed ETC2 8 bits format and it worked fine on my handful of test devices, but fails with the same error on a tester’s iPad Pro.
Does anyone know of a compressed format that is GetPixel-compatible on all iOS devices? (I’m sure I could RGBA32, but the memory required would lead me straight down crash alley.)
No, unfortunately. The compromise solution I settled on was to use RGB16 format, which seems to be compatible on every device I’ve tried so far, but eats up an eye-watering 8MB per 2k x 2k texture. But since I only need to load two of them per level, I think it’ll be okay.
I switched to the Compressed ETC2 8 bits format and it worked fine on my handful of test devices, but fails with the same error on a tester’s iPad Pro.
this should not happen. Can you create small repro project and bug report it?
same issue here. “unsupported GraphicsFormat(117) for GetPixel operations.” in IOS platform in editor. The error message in console has no links nor any useful info for debugging.
I am also using GetPixelBillinear in the project. not sure if that’s where it’s coming from