Skip to content

Feature Request: Vulkan HDR #18532

Closed
Closed
@DrogonMar

Description

Describe the solution you'd like
Update the Vulkan RHI to allow HDR output.
This should be possible even though there isn't a direct P2020 color space available in Vulkan as VKD3D can handle
displaying DX12 games using that color space (by the looks of it) just fine.
You can see some parts on how this is handled:

  • Converting the DX12 color space enum: here
  • Converting the DX12 HDR metadata: here

I'm not an expert on this but the person who did the HDR work for VKD3D and Steam Deck is misyltoad which I
asked if this was perfectly fine and the response I got back was "yes, i implemented that and it is correct" when asked about
the DXGI_COLOR_SPACE to VK_COLOR_SPACE conversion.

Describe alternatives you've considered
Possibly get some extension to Vulkan to expand the direct official color space to directly be P2020 but by the looks of it
VKD3D doesn't need to do anything extra, seems like you can directly use VK_COLOR_SPACE_HDR10_ST2084_EXT.

Additional context
This is something I've been working on together with my Wayland changes since the Vulkan RHI creates the swapchain with a VK_FORMAT_A2R10G10B10_UNORM_PACK32 format, so far I am sending the HDR metadata but it looks a bit dim I know its possible as I've played games with VKD3D that use P2020 and they look exactly as id expect.

Heres a link to the branch.

image

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    sig/graphics-audioCategorizes an issue or PR as relevant to SIG graphics-audio.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions