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
qplatformvulkaninstance.cpp
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
6
7QT_BEGIN_NAMESPACE
8
9/*!
10 \class QPlatformVulkanInstance
11 \since 5.10
12 \internal
13 \preliminary
14 \ingroup qpa
15
16 \brief The QPlatformVulkanInstance class provides an abstraction for Vulkan instances.
17
18 The platform Vulkan instance is responsible for loading a Vulkan library,
19 resolving the basic entry points for creating instances, providing support
20 for creating new or adopting existing VkInstances, and abstracting some
21 WSI-specifics like checking if a given queue family can be used to present
22 using a given window.
23
24 \note platform plugins will typically subclass not this class, but rather
25 QBasicVulkanPlatformInstance.
26
27 \note Vulkan instance creation is split into two phases: a new
28 QPlatformVulkanInstance is expected to load the Vulkan library and do basic
29 initialization, after which the supported layers and extensions can be
30 queried. Everything else is deferred into createOrAdoptInstance().
31*/
32
33class QPlatformVulkanInstancePrivate
34{
35public:
36 QPlatformVulkanInstancePrivate() { }
37};
38
39QPlatformVulkanInstance::QPlatformVulkanInstance()
40 : d_ptr(new QPlatformVulkanInstancePrivate)
41{
42}
43
44QPlatformVulkanInstance::~QPlatformVulkanInstance()
45{
46}
47
48void QPlatformVulkanInstance::presentAboutToBeQueued(QWindow *window)
49{
50 Q_UNUSED(window);
51}
52
53void QPlatformVulkanInstance::presentQueued(QWindow *window)
54{
55 Q_UNUSED(window);
56}
57
58void QPlatformVulkanInstance::setDebugFilters(const QList<QVulkanInstance::DebugFilter> &filters)
59{
60 Q_UNUSED(filters);
61}
62
63void QPlatformVulkanInstance::setDebugUtilsFilters(const QList<QVulkanInstance::DebugUtilsFilter> &filters)
64{
65 Q_UNUSED(filters);
66}
67
68void QPlatformVulkanInstance::beginFrame(QWindow *window)
69{
70 Q_UNUSED(window);
71}
72
73void QPlatformVulkanInstance::endFrame(QWindow *window)
74{
75 Q_UNUSED(window);
76}
77
78
79QT_END_NAMESPACE