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
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
4#ifndef QVULKANDEFAULTINSTANCE_P_H
5#define QVULKANDEFAULTINSTANCE_P_H
6
7//
8// W A R N I N G
9// -------------
10//
11// This file is not part of the Qt API. It exists for the convenience
12// of a number of Qt sources files. This header file may change from
13// version to version without notice, or even be removed.
14//
15// We mean it.
16//
17
18#include <QtGui/private/qtguiglobal_p.h>
19
20#if QT_CONFIG(vulkan)
21
22#include <QtGui/qvulkaninstance.h>
23
25
26struct Q_GUI_EXPORT QVulkanDefaultInstance
27{
28 enum Flag {
29 EnableValidation = 0x01
30 };
32
33 static Flags flags();
34 static void setFlag(Flag flag, bool on = true);
35 static bool hasInstance();
36 static QVulkanInstance *instance();
37 static void cleanup();
38};
39
40Q_DECLARE_OPERATORS_FOR_FLAGS(QVulkanDefaultInstance::Flags)
41
43
44#endif // QT_CONFIG(vulkan)
45
46#endif
The QVulkanInstance class represents a native Vulkan instance, enabling Vulkan rendering onto a QSurf...
Combined button and popup list for selecting options.
#define Q_DECLARE_FLAGS(Flags, Enum)
Definition qflags.h:174
#define Q_DECLARE_OPERATORS_FOR_FLAGS(Flags)
Definition qflags.h:194
Flags
GLbitfield flags