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
qquickgraphicsconfiguration_p.h
Go to the documentation of this file.
1// Copyright (C) 2020 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 QQUICKGRAPHICSCONFIGURATION_P_H
6#define QQUICKGRAPHICSCONFIGURATION_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 purely as an
13// implementation detail. This header file may change from version to
14// version without notice, or even be removed.
15//
16// We mean it.
17//
18
19#include <QtQuick/private/qtquickglobal_p.h>
20#include <QAtomicInt>
22
24
26{
27public:
28 static QQuickGraphicsConfigurationPrivate *get(QQuickGraphicsConfiguration *p) { return p->d; }
29 static const QQuickGraphicsConfigurationPrivate *get(const QQuickGraphicsConfiguration *p) { return p->d; }
30 QQuickGraphicsConfigurationPrivate();
31 QQuickGraphicsConfigurationPrivate(const QQuickGraphicsConfigurationPrivate &other);
32
33 enum Flag {
34 UseDepthBufferFor2D = 0x01,
35 EnableDebugLayer = 0x02,
36 EnableDebugMarkers = 0x04,
37 PreferSoftwareDevice = 0x08,
38 AutoPipelineCache = 0x10,
39 EnableTimestamps = 0x20
40 };
41 Q_DECLARE_FLAGS(Flags, Flag)
42
43 QAtomicInt ref;
44 QByteArrayList deviceExtensions;
45 Flags flags;
46 QString pipelineCacheSaveFile;
47 QString pipelineCacheLoadFile;
48};
49
50Q_DECLARE_OPERATORS_FOR_FLAGS(QQuickGraphicsConfigurationPrivate::Flags)
51
52QT_END_NAMESPACE
53
54#endif // QQUICKGRAPHICSCONFIGURATION_P_H
QDebug operator<<(QDebug dbg, const QFileInfo &fi)