misc

Must use GL_TEXTURE_RECTANGLE.

Warning: For IOSurfaceGetPixelFormat() -> ‘2vuy’, IOSurfaceGetPlaneCount() -> 0!

iosurf format: 2vuy (0x32767579) 8a51 80/128 8a1f/85bb GL_RGB_RAW_422_APPLE: 10008 GL_RGB_422_APPLE: 0 GL_RGB: 10008 GL_RGB_RAW_422_APPLE non-rev: 10008 GL_RGB_422_APPLE non-rev: 0 GL_RGB non-rev: 10008

https://www.khronos.org/registry/OpenGL/extensions/APPLE/APPLE_rgb_422.txt This adds GL_RGB_RAW_422APPLE to internalFormat, but that yields an error. However, RGB/RGB_422_APPLE/UNSIGNED_SHORT_8_8[REV_]APPLE works.