diff options
| author | Charles Giessen <charles@lunarg.com> | 2022-05-26 15:26:32 -0600 |
|---|---|---|
| committer | Charles Giessen <46324611+charles-lunarg@users.noreply.github.com> | 2022-05-26 16:38:59 -0600 |
| commit | dd7e8d2fbbdaca099e9ada77fec178e12a6b37d5 (patch) | |
| tree | bef2975ccff299fc58044ae87b0831c82ac74066 | |
| parent | 903245157779ba52ed4be78969797947e2dc372a (diff) | |
| download | usermoji-dd7e8d2fbbdaca099e9ada77fec178e12a6b37d5.tar.xz | |
vkcubepp: Use correct extension for portability enumeration
| -rw-r--r-- | cube/cube.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/cube/cube.cpp b/cube/cube.cpp index 9b4ac1a3..910b1be1 100644 --- a/cube/cube.cpp +++ b/cube/cube.cpp @@ -1131,7 +1131,7 @@ void Demo::init_vk() { // We want cube to be able to enumerate drivers that support the portability_subset extension, so we have to enable the // portability enumeration extension. portabilityEnumerationActive = true; - enabled_instance_extensions.push_back(VK_EXT_DEBUG_UTILS_EXTENSION_NAME); + enabled_instance_extensions.push_back(VK_KHR_PORTABILITY_ENUMERATION_EXTENSION_NAME); } else if (!strcmp(VK_KHR_SURFACE_EXTENSION_NAME, extension.extensionName)) { surfaceExtFound = 1; enabled_instance_extensions.push_back(VK_KHR_SURFACE_EXTENSION_NAME); @@ -2962,7 +2962,8 @@ vk::Result Demo::create_display_surface() { exit(1); } - vk::DisplayPlaneCapabilitiesKHR planeCaps = gpu.getDisplayPlaneCapabilitiesKHR(display_mode_prop.displayMode, plane_found).value; + 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 = { |
