Files
oak-gpui/crates
Mike-Solar 4067918c67 feat(macos): tag the Metal layer with the display colorspace on demand
When the app self-manages the display transform (OAK_MACOS_LAYER_
COLORSPACE=display set at startup), the CAMetalLayer is tagged with the
main display's colorspace so ColorSync passes the already-transformed
pixels through — without the tag the OS would re-correct them (double
correction). The CoreGraphics FFI lives in its own module because the
build script forwards metal_renderer.rs FFI declarations into the
Metal shader header.
2026-08-21 02:17:16 +08:00
..