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

source code of qtbase/src/gui/vulkan/qplatformvulkaninstance.cpp