Vulkan: HDR support for Wayland

This change enables HDR support for wayland as an experimental feature.
It supports both non-linear extended sRGB and un-clamped sRGB.

Windows isn't supported as the HDR settings are not accessible via an
API and would require similar settings that games use to configure the
monitor. Adding those sliders isn't what we would like to add.

Vulkan (working group) is working on new extensions that might change
the shortcomings. It isn't clear yet what the extension will do and what
the impact is for applications that want to use it. When the extension
is out we should review at the situation again.

Pull Request: https://projects.blender.org/blender/blender/pulls/133159
This commit is contained in:
Jeroen Bakker
2025-06-24 11:51:14 +02:00
parent f94ec130c3
commit e63a20fee1
6 changed files with 54 additions and 31 deletions

View File

@@ -2878,6 +2878,13 @@ class USERPREF_PT_experimental_prototypes(ExperimentalPanel, Panel):
({"property": "write_legacy_blend_file_format"}, ("/blender/blender/issues/129309", "#129309")),
),
)
import sys
if sys.platform == "linux":
self._draw_items(
context, (
({"property": "use_vulkan_hdr"}, ("/blender/blender/issues/140277", "#140277")),
),
)
# Keep this as tweaks can be useful to restore.