#ifndef VULKANWINDOW_H #define VULKANWINDOW_H #include #include #include #include "Types.h" #if defined(Q_OS_ANDROID) #define VK_USE_PLATFORM_ANDROID_KHR // Enable Vulkan support for Android #include #elif defined(Q_OS_LINUX) #include #define VK_USE_PLATFORM_XCB_KHR // Enable Vulkan support for Linux (XCB) #include #include #endif class VulkanWindow : public QWindow { Q_OBJECT public: VulkanWindow(); virtual ~VulkanWindow(); VkSurfaceKHR createVulkanSurface(VkInstance instance, VkSurfaceKHR& surface); void getWindowSize(int& width, int& height); private: void cleanup(); VkSurfaceKHR _surface; VkInstance _instance; }; #endif // VULKANWINDOW_H