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

source code of qtdeclarative/src/quick/items/qquickgraphicsconfiguration_p.h