From fbb1474438340d4b4c9539b91ea358117bd4685f Mon Sep 17 00:00:00 2001 From: Mike Schuchardt Date: Wed, 11 May 2022 15:43:28 -0700 Subject: cubepp: Fix VK_KHR_display compile error Vulkan-Hpp Implicit-cast operators on vk::ResultValue were previously deprecated and finally removed in the v1.3.213 headers. Fix the resulting compiler error in cubepp by explicitly using the value member of vk:ResultValue. Change-Id: Ie441bd56dfb9dfe26e966e0ec3fb3139712a351a --- cube/cube.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cube/cube.cpp b/cube/cube.cpp index 03fd65b4..e984fabb 100644 --- a/cube/cube.cpp +++ b/cube/cube.cpp @@ -2962,7 +2962,7 @@ vk::Result Demo::create_display_surface() { exit(1); } - vk::DisplayPlaneCapabilitiesKHR planeCaps = gpu.getDisplayPlaneCapabilitiesKHR(display_mode_prop.displayMode, plane_found); + vk::DisplayPlaneCapabilitiesKHR planeCaps = gpu.getDisplayPlaneCapabilitiesKHR(display_mode_prop.displayMode, plane_found).value; // Find a supported alpha mode vk::DisplayPlaneAlphaFlagBitsKHR alphaMode = vk::DisplayPlaneAlphaFlagBitsKHR::eOpaque; std::array alphaModes = { -- cgit v1.2.3