Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qwindowsvulkaninstance.h
Go to the documentation of this file.
1// Copyright (C) 2017 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3// Qt-Security score:significant reason:default
4
5#ifndef QWINDOWSVULKANINSTANCE_H
6#define QWINDOWSVULKANINSTANCE_H
7
8#if defined(VULKAN_H_) && !defined(VK_USE_PLATFORM_WIN32_KHR)
9#error "vulkan.h included without Win32 WSI"
10#endif
11
12#define VK_USE_PLATFORM_WIN32_KHR
13
14#include <QtGui/private/qbasicvulkanplatforminstance_p.h>
15#include <QtCore/qlibrary.h>
16
17QT_BEGIN_NAMESPACE
18
19class QWindowsVulkanInstance : public QBasicPlatformVulkanInstance
20{
21 Q_DISABLE_COPY_MOVE(QWindowsVulkanInstance)
22public:
23 QWindowsVulkanInstance(QVulkanInstance *instance);
24
25 void createOrAdoptInstance() override;
26 bool supportsPresent(VkPhysicalDevice physicalDevice, uint32_t queueFamilyIndex, QWindow *window) override;
27
28 VkSurfaceKHR createSurface(HWND win);
29
30private:
31 QVulkanInstance *m_instance;
32 PFN_vkGetPhysicalDeviceWin32PresentationSupportKHR m_getPhysDevPresSupport;
33 PFN_vkCreateWin32SurfaceKHR m_createSurface;
34};
35
37
38#endif // QWINDOWSVULKANINSTANCE_H
Combined button and popup list for selecting options.