walbourn / directx-vs-templates

Direct3D Visual Studio Templates
https://walbourn.github.io/direct3d-game-visual-studio-templates-redux/
MIT License
412 stars 56 forks source link

Question: ColorSpace value of HDR swap chain for composition (XAML) #64

Closed anup-das closed 2 years ago

anup-das commented 2 years ago

To update colorspace of the swap chain, the template code detects HDR display associated with the app based on HWND (Win32) or CoreWindow (UWP)

Comment in code... // To detect HDR support, we will need to check the color space in the primary DXGI output associated with the app at this point in time

Association is checked via bounds of app window and its intersection area with the desktop display area.

What should an XAML app that uses CreateSwapChainForComposition do ? On what criteria can the XAML app decide the colorspace of swap chain ? i.e whether the app (DXGI_COLOR_SPACE_RGB_FULL_G2084_NONE_P2020) or the system (DXGI_COLOR_SPACE_RGB_FULL_G10_NONE_P709) creates the HDR10 signal

BTW I am using DirectX 11

Thanks in advance, Anup

anup-das commented 2 years ago

Closing this as D2DAdvancedColorImages uwp sample answers my question.

walbourn commented 2 years ago

Thanks for the follow up. I don't do much with XAML+DirectX scenarios myself.