diff options
| author | Mike Schuchardt <mikes@lunarg.com> | 2022-05-11 15:43:28 -0700 |
|---|---|---|
| committer | Mike Schuchardt <mikes@lunarg.com> | 2022-05-12 09:05:07 -0700 |
| commit | fbb1474438340d4b4c9539b91ea358117bd4685f (patch) | |
| tree | ce070f7e8e8085b21cac5d959dbe8421019b7709 | |
| parent | fe5067838521f94f98f247b08bbdbeed812e4374 (diff) | |
| download | usermoji-fbb1474438340d4b4c9539b91ea358117bd4685f.tar.xz | |
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
| -rw-r--r-- | cube/cube.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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<vk::DisplayPlaneAlphaFlagBitsKHR, 4> alphaModes = { |
