blob: 95777a1c512491c4ee62c1433220f1e370cf57c2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
|
// Copyright (C) 2020 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
#ifndef QQUICKGRAPHICSCONFIGURATION_H
#define QQUICKGRAPHICSCONFIGURATION_H
#include <QtQuick/qtquickglobal.h>
#include <QtCore/qbytearraylist.h>
#include <QtCore/qdebug.h>
QT_BEGIN_NAMESPACE
class QQuickGraphicsConfigurationPrivate;
class Q_QUICK_EXPORT QQuickGraphicsConfiguration
{
public:
QQuickGraphicsConfiguration();
~QQuickGraphicsConfiguration();
QQuickGraphicsConfiguration(const QQuickGraphicsConfiguration &other);
QQuickGraphicsConfiguration &operator=(const QQuickGraphicsConfiguration &other);
static QByteArrayList preferredInstanceExtensions();
void setDeviceExtensions(const QByteArrayList &extensions);
QByteArrayList deviceExtensions() const;
void setDepthBufferFor2D(bool enable);
bool isDepthBufferEnabledFor2D() const;
void setDebugLayer(bool enable);
bool isDebugLayerEnabled() const;
void setDebugMarkers(bool enable);
bool isDebugMarkersEnabled() const;
void setTimestamps(bool enable);
bool timestampsEnabled() const;
void setPreferSoftwareDevice(bool enable);
bool prefersSoftwareDevice() const;
void setAutomaticPipelineCache(bool enable);
bool isAutomaticPipelineCacheEnabled() const;
void setPipelineCacheSaveFile(const QString &filename);
QString pipelineCacheSaveFile() const;
void setPipelineCacheLoadFile(const QString &filename);
QString pipelineCacheLoadFile() const;
private:
void detach();
QQuickGraphicsConfigurationPrivate *d;
friend class QQuickGraphicsConfigurationPrivate;
#ifndef QT_NO_DEBUG_STREAM
friend Q_QUICK_EXPORT QDebug operator<<(QDebug dbg, const QQuickGraphicsConfiguration &config);
#endif
};
QT_END_NAMESPACE
#endif // QQUICKGRAPHICSCONFIGURATION_H
|