Replicate qvulkaninstance.h's logic. The idea being to allow to compile code that uses QRhi (so includes qrhi.h) with a pre-built Qt that was built with Vulkan support, but there is no Vulkan SDK (and so vulkan.h) on the developer's system. Normally this is not something we care about, e.g. compiling an application using QVulkanInstance or any other Vulkan functionality implies one has to have the SDK installed or at least the headers available in one way or another. However, including qrhi.h (and so qrhi_platform.h) happens in some cases in applications that do not themselves initialize a QRhi, i.e. they do not care about the QRhiVulkan* structs, because they only ever use a QRhi retrieved e.g. from the QQuickWindow. Design Studio is one example. To allow building DS against a Qt that is Vulkan-enabled (e.g. the official Qt releases) but in an environment that has no Vulkan headers, we skip the QRhiVulkan* stuff when there is no vulkan.h available. Change-Id: Ic81250e6c90939a38f79cab1438fbb9f483f56df Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io> (cherry picked from commit c6fce818db7e56f659ea88784d2f9278f9ce1436) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
…
Description
Languages
C++
84.3%
HTML
4.9%
C
3.9%
CMake
3.6%
Objective-C++
2%
Other
0.8%