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:
parent
1482715fd1
commit
0e503ce795
@ -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;
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user