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
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#include <QtCore/qloggingcategory.h>
24
25QT_BEGIN_NAMESPACE
26
27Q_DECLARE_LOGGING_CATEGORY(lcGuiVk)
28
29struct Q_GUI_EXPORT QVulkanDefaultInstance
30{
31 enum Flag {
32 EnableValidation = 0x01
33 };
34 Q_DECLARE_FLAGS(Flags, Flag)
35
36 static Flags flags();
37 static void setFlag(Flag flag, bool on = true);
38 static bool hasInstance();
39 static QVulkanInstance *instance();
40 static void cleanup();
41};
42
43Q_DECLARE_OPERATORS_FOR_FLAGS(QVulkanDefaultInstance::Flags)
44
45QT_END_NAMESPACE
46
47#endif // QT_CONFIG(vulkan)
48
49#endif