Qt 6.x
The Qt SDK
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
qquickgraphicsdevice_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
4#ifndef QQUICKGRAPHICSDEVICE_P_H
5#define QQUICKGRAPHICSDEVICE_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>
21
23
24class Q_QUICK_PRIVATE_EXPORT QQuickGraphicsDevicePrivate
25{
26public:
28 static const QQuickGraphicsDevicePrivate *get(const QQuickGraphicsDevice *p) { return p->d; }
31
32 enum class Type {
33 Null,
34 OpenGLContext,
35 Adapter,
40 Rhi
41 };
42
44 Type type = Type::Null;
45
46 struct Adapter {
50 };
51
53 void *device;
54 void *context;
55 };
56
58 void *device;
59 void *cmdQueue;
60 };
61
64 };
65
68 void *device;
71 };
72
73 union {
81 } u;
82};
83
85
86#endif // QQUICKGRAPHICSDEVICE_P_H
\inmodule QtCore
Definition qatomic.h:112
\inmodule QtGui
static const QQuickGraphicsDevicePrivate * get(const QQuickGraphicsDevice *p)
static QQuickGraphicsDevicePrivate * get(QQuickGraphicsDevice *p)
DeviceAndCommandQueue deviceAndCommandQueue
The QQuickGraphicsDevice class provides an opaque container for native graphics objects representing ...
\inmodule QtGui
Definition qrhi.h:1767
Combined button and popup list for selecting options.
GLenum type
GLfloat GLfloat p
[1]
unsigned int quint32
Definition qtypes.h:45
int qint32
Definition qtypes.h:44
QSharedPointer< T > other(t)
[5]
Definition moc.h:24