Extensions

xgpui-gamut

Explicit linear-P3 SDR content producers; normal GPUI controls retain sRGB semantics.

xgpui-gamut

EXPLORE COLOR & WIDE GAMUTAll demos →
Native Display P3 labCompare wide SDR content with ordinary sRGB controls on macOS or Windows. Run from the repository root:
cargo run --locked --config .cargo/validation.toml --manifest-path apps/xgpui-ext-lab/Cargo.toml --bin gamut-lab
Move the window to a wide-gamut display. Check Effective: WideGamutSdr and Display wide gamut: Some(true). These report negotiated support, not display calibration.
Open color comparison ↗Interactive browser preview of interpolation and gamut mapping. Rendered as sRGB; use the native lab to compare actual Display P3 output.

Read the xgpui-gamut guide →

Public surface at a glance

WideColor::linear_p3 supports CustomContent; optional instanced WidePainter/WideGradient use explicit P3 shaders. Shared color math lives in xgpui-color; GPUI backends own presentation. Native color-lab compares P3 and mapped sRGB reference swatches with effective window/display status.

Open library entrypoint ↗ · Browse the crate source ↗

API documentation

Rustdoc for the published crate is on docs.rs ↗. It documents the latest release, which can lag the repository.

Dependencies

Dependencies, optional features and target conditions are declared in Cargo.toml ↗.

Boundary to investigate

Review hypothesis. No visibility changes or removal decisions have been made.

Keep profile decoding and future content producers separate from host presentation. Windows native swap-chain/display validation remains outstanding; Linux is deferred.