Details
Description
When building Qt 6.7.3 on macOS with molten-vk as Vulkan implementation (with export VULKAN_SDK=/opt/homebrew/opt/molten-vk/libexec, as Molten-VK is installed using Homebrew), Qt Webengine fails to compile with the following error:
/qt-everywhere-src-6.7.3/qtwebengine/src/core/compositor/native_skia_output_device_vulkan.cpp:252:34: error: use of undeclared identifier 'importMemoryHandleInfo' dedicatedMemoryInfo.pNext = &importMemoryHandleInfo; ^
The variable importMemoryHandleInfo is only defined if the OS is either Windows, or USE_OZONE is defined. From what I can see, USE_OZONE is set to always true in qtwebengine/src/core/CMakeLists.txt only if the operating system is Linux. This means that the variable if missing if the operating system is macOS.
It seems the problem was introduced with https://codereview.qt-project.org/c/qt/qtwebengine/+/528417