From c0509ef586e939fbc60b52f80f2cf1b40e5bd9be Mon Sep 17 00:00:00 2001 From: Laszlo Agocs Date: Wed, 22 Jun 2022 11:19:44 +0200 Subject: vulkan: Have a dummy format type if there is no Vulkan header ...at application build time. Follow what is already done for some other Vk* types. Supports 1df2cf6bad7207f16ddca17344cc1324e50f287e in qtdeclarative, which puts now also VkFormat into a header. We need the function declaration to compile without a Vulkan SDK (so without vulkan.h). Pick-to: 6.4 Fixes: QTBUG-104501 Change-Id: I09c87149a53a45f03c9f75b87baec4323db16b1d Reviewed-by: Fabian Kosmale --- src/gui/vulkan/qvulkaninstance.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/gui/vulkan/qvulkaninstance.h') diff --git a/src/gui/vulkan/qvulkaninstance.h b/src/gui/vulkan/qvulkaninstance.h index c2c5358ca9..a51ce5ec99 100644 --- a/src/gui/vulkan/qvulkaninstance.h +++ b/src/gui/vulkan/qvulkaninstance.h @@ -36,6 +36,7 @@ typedef void* VkPhysicalDevice; typedef void* VkDevice; // enums typedef int VkResult; +typedef int VkFormat; typedef int VkImageLayout; typedef int VkDebugReportFlagsEXT; typedef int VkDebugReportObjectTypeEXT; -- cgit v1.2.3