1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2024-12-05 01:24:14 +01:00

[vulkan] Log swap chain color space

This commit is contained in:
Philip Rebohle 2023-01-16 13:30:41 +01:00 committed by Joshie
parent 1482715fd1
commit 0e503ce795
2 changed files with 16 additions and 0 deletions

View File

@ -307,6 +307,21 @@ std::ostream& operator << (std::ostream& os, VkPresentModeKHR e) {
std::ostream& operator << (std::ostream& os, VkColorSpaceKHR e) {
switch (e) {
ENUM_NAME(VK_COLOR_SPACE_SRGB_NONLINEAR_KHR);
ENUM_NAME(VK_COLOR_SPACE_DISPLAY_P3_NONLINEAR_EXT);
ENUM_NAME(VK_COLOR_SPACE_EXTENDED_SRGB_LINEAR_EXT);
ENUM_NAME(VK_COLOR_SPACE_DISPLAY_P3_LINEAR_EXT);
ENUM_NAME(VK_COLOR_SPACE_DCI_P3_NONLINEAR_EXT);
ENUM_NAME(VK_COLOR_SPACE_BT709_LINEAR_EXT);
ENUM_NAME(VK_COLOR_SPACE_BT709_NONLINEAR_EXT);
ENUM_NAME(VK_COLOR_SPACE_BT2020_LINEAR_EXT);
ENUM_NAME(VK_COLOR_SPACE_HDR10_ST2084_EXT);
ENUM_NAME(VK_COLOR_SPACE_DOLBYVISION_EXT);
ENUM_NAME(VK_COLOR_SPACE_HDR10_HLG_EXT);
ENUM_NAME(VK_COLOR_SPACE_ADOBERGB_LINEAR_EXT);
ENUM_NAME(VK_COLOR_SPACE_ADOBERGB_NONLINEAR_EXT);
ENUM_NAME(VK_COLOR_SPACE_PASS_THROUGH_EXT);
ENUM_NAME(VK_COLOR_SPACE_EXTENDED_SRGB_NONLINEAR_EXT);
ENUM_NAME(VK_COLOR_SPACE_DISPLAY_NATIVE_AMD);
ENUM_DEFAULT(e);
}
return os;

View File

@ -168,6 +168,7 @@ namespace dxvk::vk {
Logger::info(str::format(
"Presenter: Actual swap chain properties:"
"\n Format: ", m_info.format.format,
"\n Color space: ", m_info.format.colorSpace,
"\n Present mode: ", m_info.presentMode,
"\n Buffer size: ", m_info.imageExtent.width, "x", m_info.imageExtent.height,
"\n Image count: ", m_info.imageCount,