Vixen
dd8b0a81
csharp
public enum ColorGamut

The set of colours a display can actually show.

Read the guide page for this →

Remarks

⚠ A gamut is a set of primaries, not a transfer function. These three all share the D65 white point and differ only in where their red, green and blue sit on the chromaticity diagram, so converting between them is one 3×3 matrix on linear values with no chromatic adaptation. Applying one of these to sRGB-encoded numbers produces something that is not a colour in any space — see ColorSpace.

⚠ Wider is not free. The same eight bits spread across a wider gamut are coarser per step, which is why Rec2020 and DisplayP3 band visibly at eight bits where sRGB does not. A wide gamut is worth having only when it is paired with ten-bit or half-float storage, and the swapchain treats that pairing as a rule.

Fields and properties (3)

  • Srgb

    Rec. 709 primaries — what an ordinary display shows, and what CSS means by default.

  • DisplayP3

    Display P3: the DCI-P3 primaries on a D65 white point. Every recent Mac, iPhone and iPad panel, and roughly 25% more area than sRGB.

  • Rec2020

    ITU-R BT.2020 — the ultra-high-definition television gamut, wider than any current consumer panel fully covers.

Used by (23)

  • GamutMapVixen.Core.Mathematics
  • GamutMapTestsVixen.Core.Mathematics.Tests
  • GraphicsOptionsVixen.App.Hosting
  • HudLuminanceDeviceTestsVixen.Graphics.Golden.Tests
  • HudLuminanceTestsVixen.Ui.Controls.Tests
  • ISwapChainVixen.Graphics
  • IdleFrameWorkTestsVixen.Ui.Tests
  • MediaContextVixen.Ui.Styling
  • MediaContextTestsVixen.Ui.Tests
  • MediaQueryVixen.Ui.Styling
  • MixBlendModeLuminanceTestsVixen.Ui.Controls.Tests
  • OkLchVixen.Ui.Controls.Advanced
  • PerSurfaceMediaTestsVixen.Ui.Tests
  • StyleValueParserVixen.Ui.Styling
  • SwapChainDescriptionVixen.Graphics
  • ThemeAndScannerTestsVixen.Ui.Styling.Utilities.Tests
  • UiDocumentVixen.Ui
  • UiGamutTestsVixen.Ui.Tests
  • UiGeometryBuilderVixen.Ui
  • UiSurfaceVixen.Ui
  • VulkanSwapChainVixen.Graphics.Vulkan
  • VulkanSwapChainTestsVixen.Graphics.Vulkan.Tests
  • WideGamutTestsVixen.Ui.Styling.Tests