Commit Graph
12 Commits
Author SHA1 Message Date
Mike-Solar 41dac8f33e platform: declare the window content colorspace to the OS
WindowContentColorspace (primaries x transfer) + set_content_colorspace:
Wayland rebuilds the color-management-v1 image description per spec
(P3/BT.2020 primaries, PQ/HLG transfer with luminances), macOS tags the
Metal layer with the matching CGColorSpace (incl. BT.2100 PQ/HLG),
Windows records it (ACM only honors sRGB). Also: warn when the wgpu
surface fallback would pick an sRGB-suffixed format (double encoding),
share the surface-params uniform across 256 slots (multiple viewers per
frame), and cfg-gate the viewer's GPU-texture source for macOS/Windows.
2026-08-29 00:24:00 +08:00
Mike-Solar 4022d1db5e wgpu: pick the surface format from the OAK_DISPLAY_BIT_DEPTH preference
10-bit (default): Rgb10a2Unorm, falling back to Rgba16Float then 8-bit;
8-bit: the previous hardcoded Bgra8Unorm/Rgba8Unorm. Selection is a
pure function with unit tests; the env var is re-read on every surface
(re)creation.
2026-08-27 19:08:55 +08:00
Mike-Solar a761d96c82 perf(wgpu_atlas): upload identity-format textures from the caller's slice
BGRA atlas uploads (every viewer video frame on macOS) were staged
through swizzle_upload_data's to_vec() into pending_uploads — a
full-frame CPU copy per upload. Non-swizzled formats now write_texture
directly from the borrowed bytes; only the RGBA swizzle and the
not-yet-allocated fallback keep the owned staging path.
2026-08-19 01:19:52 +08:00
Mike-Solar af5482d774 style: cargo fmt with the workspace tab policy (hard_tabs)
Whitespace only; the fork has no own rustfmt.toml so the Oak root
policy applies.
2026-08-11 23:06:13 +08:00
Max Carter 祁明思 6043651563 Add letter spacing and text transforms to GPUI (#111)
* Add text spacing and transform style plumbing

* Apply byte-stable transforms and spacing-aware truncation

* Add platform letter spacing support

* Fix scheduler clippy warning

* Refresh dependency lockfile

* Fix CI for text spacing changes

* Add text transform preview example
2026-08-07 21:48:02 -07:00
Miles Wirht 6c799b8e99 removed all of the git sources (#91) 2026-07-13 21:25:00 -04:00
Scar-00 ce08af96db add wgpu renderer for windows (#44) 2026-06-24 19:10:56 -04:00
Philipp Schaffrath 0610782953 Wayland input_region and exclusive_zone + WGPU panic fix (#82) 2026-06-22 21:59:02 -04:00
Miles Wirht ec395ac14c My stab at CI (#66) 2026-06-15 18:42:57 -04:00
Leonard SeiboldandNewspicel 69d467e4d1 Filter API + Blur (#40)
Co-authored-by: Newspicel <newspicel+claude@pm.me>
2026-06-14 10:18:25 -04:00
Leonard Seibold 6d043b22e4 gpui: Add wgpu Surface element and GPU device requirements API for Linux (#39) 2026-06-07 01:53:18 -04:00
Scar-00 01335f7698 re-re-fork (#28) 2026-06-02 07:53:18 -04:00