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
qvulkandefaultinstance_p.h
Go to the documentation of this file.
1// Copyright (C) 2022 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 QVULKANDEFAULTINSTANCE_P_H
6#define QVULKANDEFAULTINSTANCE_P_H
7
8//
9// W A R N I N G
10// -------------
11//
12// This file is not part of the Qt API. It exists for the convenience
13// of a number of Qt sources files. This header file may change from
14// version to version without notice, or even be removed.
15//
16// We mean it.
17//
18
19#include <QtGui/private/qtguiglobal_p.h>
20
21#if QT_CONFIG(vulkan)
22
23#include <QtGui/qvulkaninstance.h>
24#include <QtCore/qloggingcategory.h>
25
26QT_BEGIN_NAMESPACE
27
28Q_DECLARE_LOGGING_CATEGORY(lcGuiVk)
29
30struct Q_GUI_EXPORT QVulkanDefaultInstance
31{
32 enum Flag {
33 EnableValidation = 0x01
34 };
35 Q_DECLARE_FLAGS(Flags, Flag)
36
37 static Flags flags();
38 static void setFlag(Flag flag, bool on = true);
39 static bool hasInstance();
40 static QVulkanInstance *instance();
41 static void cleanup();
42};
43
44Q_DECLARE_OPERATORS_FOR_FLAGS(QVulkanDefaultInstance::Flags)
45
46QT_END_NAMESPACE
47
48#endif // QT_CONFIG(vulkan)
49
50#endif
Combined button and popup list for selecting options.