The HDR sample project does not enumerate all display adapters, which causes D3D12HDR::CheckDisplayHDRSupport() to report incorrect information. To reproduce this issue:
- Connect a display to a dedicated GPU, such as an NVIDIA card
- Connect a second HDR-compatible display to an integrated GPU, such as an AMD integrated GPU
- Set the dedicated GPU as the "main display"
- Enable HDR output in Windows on the secondary display that is connected to the integrated GPU
- Run the project
- Move the window to the secondary display that is connected to the integrated GPU
- Note that
CheckDisplayHDRSupport incorrectly reports false