3 ms·
It's "documented" as in "tweeted out by an Apple engineer": https://twitter.com/bciechanowski/status/874345241666437120?lang=en https://twitter.com/bciechanowsk
by pcwalton 7y ago
It's "documented" as in "tweeted out by an Apple engineer": https://twitter.com/bciechanowski/status/874345241666437120?lang=en https://twitter.com/bciechanowski/status/874345241666437120?...
One thing that is not documented is that the IOSurface must have been created with the 'BGRA' pixel format, or it will silently render as black instead.
- eyegor 7y agoI hope that 'bgra' was at least a typo of 'rgba'
- kornholi 7y agoBGRA is a "weird" convention in the graphics world that goes back to at least OS/2 bitmaps, when there was no wrong answer, and has stuck since then. Since early GPUs targeted Windows (where BGRA is the native format for GDI/D2D), it makes sense that it made it this far :)