From 9d2730d98a6058a67ffa50e2c7e93c30f693fa0f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B3zef=20Kucia?= Date: Thu, 21 Sep 2017 15:12:13 +0200 Subject: [PATCH] demos: Prefer VK_COLOR_SPACE_SRGB_NONLINEAR_KHR. The VK_COLORSPACE_SRGB_NONLINEAR_KHR is inconsistent with Vulkan naming rules and provided for backwards compatibility. --- demos/demo_xcb.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/demos/demo_xcb.h b/demos/demo_xcb.h index 2bacad69..736e8fc1 100644 --- a/demos/demo_xcb.h +++ b/demos/demo_xcb.h @@ -385,11 +385,11 @@ static inline struct demo_swapchain *demo_swapchain_create(ID3D12CommandQueue *c } if (format_count != 1 || formats->format != VK_FORMAT_UNDEFINED - || formats->colorSpace != VK_COLORSPACE_SRGB_NONLINEAR_KHR) + || formats->colorSpace != VK_COLOR_SPACE_SRGB_NONLINEAR_KHR) { for (i = 0; i < format_count; ++i) { - if (formats[i].format == format && formats[i].colorSpace == VK_COLORSPACE_SRGB_NONLINEAR_KHR) + if (formats[i].format == format && formats[i].colorSpace == VK_COLOR_SPACE_SRGB_NONLINEAR_KHR) break; } @@ -409,7 +409,7 @@ static inline struct demo_swapchain *demo_swapchain_create(ID3D12CommandQueue *c vk_swapchain_desc.surface = vk_surface; vk_swapchain_desc.minImageCount = desc->buffer_count; vk_swapchain_desc.imageFormat = format; - vk_swapchain_desc.imageColorSpace = VK_COLORSPACE_SRGB_NONLINEAR_KHR; + vk_swapchain_desc.imageColorSpace = VK_COLOR_SPACE_SRGB_NONLINEAR_KHR; vk_swapchain_desc.imageExtent.width = desc->width; vk_swapchain_desc.imageExtent.height = desc->height; vk_swapchain_desc.imageArrayLayers = 1;