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 | |
4 | #ifndef QXCBVULKANWINDOW_H |
5 | #define QXCBVULKANWINDOW_H |
6 | |
7 | #include "qxcbwindow.h" |
8 | #include "qxcbvulkaninstance.h" |
9 | |
10 | QT_BEGIN_NAMESPACE |
11 | |
12 | class QXcbVulkanWindow : public QXcbWindow |
13 | { |
14 | public: |
15 | QXcbVulkanWindow(QWindow *window); |
16 | ~QXcbVulkanWindow(); |
17 | |
18 | VkSurfaceKHR *surface(); |
19 | |
20 | protected: |
21 | void resolveFormat(const QSurfaceFormat &format) override; |
22 | |
23 | private: |
24 | VkSurfaceKHR m_surface; |
25 | }; |
26 | |
27 | QT_END_NAMESPACE |
28 | |
29 | #endif // QXCBVULKANWINDOW_H |
30 |