Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qquickgraphicsdevice.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_H
5
#define QQUICKGRAPHICSDEVICE_H
6
7
#include <QtQuick/qtquickglobal.h>
8
9
#if QT_CONFIG(vulkan)
10
#include <QtGui/qvulkaninstance.h>
11
#endif
12
13
#if QT_CONFIG(metal) || defined(Q_QDOC)
14
Q_FORWARD_DECLARE_OBJC_CLASS
(MTLDevice);
15
Q_FORWARD_DECLARE_OBJC_CLASS
(MTLCommandQueue);
16
#endif
17
18
QT_BEGIN_NAMESPACE
19
20
class
QQuickGraphicsDevicePrivate
;
21
class
QOpenGLContext
;
22
class
QRhi
;
23
24
class
Q_QUICK_EXPORT
QQuickGraphicsDevice
25
{
26
public
:
27
QQuickGraphicsDevice
();
28
~QQuickGraphicsDevice
();
29
QQuickGraphicsDevice
(
const
QQuickGraphicsDevice
&
other
);
30
QQuickGraphicsDevice
&operator=(
const
QQuickGraphicsDevice
&
other
);
31
32
bool
isNull()
const
;
33
34
#if QT_CONFIG(opengl) || defined(Q_QDOC)
35
static
QQuickGraphicsDevice
fromOpenGLContext(
QOpenGLContext
*
context
);
36
#endif
37
38
#if defined(Q_OS_WIN) || defined(Q_QDOC)
39
static
QQuickGraphicsDevice
fromAdapter(
quint32
adapterLuidLow,
qint32
adapterLuidHigh,
int
featureLevel = 0);
40
static
QQuickGraphicsDevice
fromDeviceAndContext(
void
*
device
,
void
*
context
);
41
#endif
42
43
#if QT_CONFIG(metal) || defined(Q_QDOC)
44
static
QQuickGraphicsDevice
fromDeviceAndCommandQueue(MTLDevice *
device
, MTLCommandQueue *commandQueue);
45
#endif
46
47
#if QT_CONFIG(vulkan) || defined(Q_QDOC)
48
static
QQuickGraphicsDevice
fromPhysicalDevice(VkPhysicalDevice physicalDevice);
49
static
QQuickGraphicsDevice
fromDeviceObjects(VkPhysicalDevice physicalDevice, VkDevice
device
,
int
queueFamilyIndex,
int
queueIndex = 0);
50
#endif
51
52
static
QQuickGraphicsDevice
fromRhi(
QRhi
*rhi);
53
54
private
:
55
void
detach();
56
QQuickGraphicsDevicePrivate
*
d
;
57
friend
class
QQuickGraphicsDevicePrivate
;
58
};
59
60
QT_END_NAMESPACE
61
62
#endif
// QQUICKGRAPHICSDEVICE_H
device
IOBluetoothDevice * device
Definition
btl2capchannel.mm:17
QOpenGLContext
\inmodule QtGui
Definition
qopenglcontext.h:67
QQuickGraphicsDevicePrivate
Definition
qquickgraphicsdevice_p.h:25
QQuickGraphicsDevice
The QQuickGraphicsDevice class provides an opaque container for native graphics objects representing ...
Definition
qquickgraphicsdevice.h:25
QRhi
\inmodule QtGuiPrivate \inheaderfile rhi/qrhi.h
Definition
qrhi.h:1804
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qstandardpaths_haiku.cpp:21
QT_END_NAMESPACE
Definition
qsharedpointer.cpp:1590
context
static void * context
Definition
qandroidaudiosource.cpp:42
Q_FORWARD_DECLARE_OBJC_CLASS
#define Q_FORWARD_DECLARE_OBJC_CLASS(classname)
Definition
qdarwinhelpers.h:20
quint32
unsigned int quint32
Definition
qtypes.h:50
qint32
int qint32
Definition
qtypes.h:49
d
double d
Definition
src_corelib_text_qlocale.cpp:9
other
QSharedPointer< T > other(t)
[5]
qtdeclarative
src
quick
items
qquickgraphicsdevice.h
Generated by
1.10.0