Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qxcbvulkaninstance.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
4#ifndef QXCBVULKANINSTANCE_H
5#define QXCBVULKANINSTANCE_H
6
7#if defined(VULKAN_H_) && !defined(VK_USE_PLATFORM_XCB_KHR)
8#error "vulkan.h included without xcb WSI"
9#endif
10
11#define VK_USE_PLATFORM_XCB_KHR
12
13#include <QtGui/private/qbasicvulkanplatforminstance_p.h>
14#include <QLibrary>
15
17
18class QXcbWindow;
19
21{
22public:
25
26 void createOrAdoptInstance() override;
27 bool supportsPresent(VkPhysicalDevice physicalDevice, uint32_t queueFamilyIndex, QWindow *window) override;
28 void presentQueued(QWindow *window) override;
29
30 VkSurfaceKHR createSurface(QXcbWindow *window);
31
32private:
33 QVulkanInstance *m_instance;
34 PFN_vkGetPhysicalDeviceXcbPresentationSupportKHR m_getPhysDevPresSupport;
35 PFN_vkCreateXcbSurfaceKHR m_createSurface;
36};
37
39
40#endif // QXCBVULKANINSTANCE_H
A generic platform Vulkan instance implementation.
The QVulkanInstance class represents a native Vulkan instance, enabling Vulkan rendering onto a QSurf...
\inmodule QtGui
Definition qwindow.h:63
VkSurfaceKHR createSurface(QXcbWindow *window)
QXcbVulkanInstance(QVulkanInstance *instance)
void createOrAdoptInstance() override
void presentQueued(QWindow *window) override
bool supportsPresent(VkPhysicalDevice physicalDevice, uint32_t queueFamilyIndex, QWindow *window) override
Combined button and popup list for selecting options.
aWidget window() -> setWindowTitle("New Window Title")
[2]