Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Toggle main menu visibility
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
// Qt-Security score:significant reason:default
4
5
#
ifndef
QQUICKGRAPHICSDEVICE_H
6
#
define
QQUICKGRAPHICSDEVICE_H
7
8
#
include
<
QtQuick
/
qtquickglobal
.
h
>
9
10
#
if
QT_CONFIG
(
vulkan
)
11
#
include
<
QtGui
/
qvulkaninstance
.
h
>
12
#
endif
13
14
#
if
QT_CONFIG
(
metal
)
||
defined
(
Q_QDOC
)
15
Q_FORWARD_DECLARE_OBJC_CLASS(MTLDevice);
16
Q_FORWARD_DECLARE_OBJC_CLASS(MTLCommandQueue);
17
#
endif
18
19
QT_BEGIN_NAMESPACE
20
21
class
QQuickGraphicsDevicePrivate;
22
class
QOpenGLContext;
23
class
QRhi;
24
class
QRhiAdapter;
25
26
class
Q_QUICK_EXPORT
QQuickGraphicsDevice
27
{
28
public
:
29
QQuickGraphicsDevice();
30
~QQuickGraphicsDevice();
31
QQuickGraphicsDevice(
const
QQuickGraphicsDevice &other);
32
QQuickGraphicsDevice &operator=(
const
QQuickGraphicsDevice &other);
33
34
bool
isNull()
const
;
35
36
#
if
QT_CONFIG
(
opengl
)
||
defined
(
Q_QDOC
)
37
static
QQuickGraphicsDevice fromOpenGLContext(QOpenGLContext *context);
38
#
endif
39
40
#
if
defined
(
Q_OS_WIN
)
||
defined
(
Q_QDOC
)
41
static
QQuickGraphicsDevice fromAdapter(quint32 adapterLuidLow, qint32 adapterLuidHigh,
int
featureLevel = 0);
42
static
QQuickGraphicsDevice fromDeviceAndContext(
void
*device,
void
*context);
43
#
endif
44
45
#
if
QT_CONFIG
(
metal
)
||
defined
(
Q_QDOC
)
46
static
QQuickGraphicsDevice fromDeviceAndCommandQueue(MTLDevice *device, MTLCommandQueue *commandQueue);
47
#
endif
48
49
#
if
QT_CONFIG
(
vulkan
)
||
defined
(
Q_QDOC
)
50
static
QQuickGraphicsDevice fromPhysicalDevice(VkPhysicalDevice physicalDevice);
51
static
QQuickGraphicsDevice fromDeviceObjects(VkPhysicalDevice physicalDevice, VkDevice device,
int
queueFamilyIndex,
int
queueIndex = 0);
52
static
QQuickGraphicsDevice fromDeviceObjects(VkPhysicalDevice physicalDevice,
53
VkDevice device,
54
int
queueFamilyIndex,
55
int
queueIndex,
56
VkDeviceQueueCreateFlags queueFlags);
57
#
endif
58
59
static
QQuickGraphicsDevice fromRhi(QRhi *rhi);
60
static
QQuickGraphicsDevice fromRhiAdapter(QRhiAdapter *adapter);
61
62
private
:
63
void
detach();
64
QQuickGraphicsDevicePrivate *d;
65
friend
class
QQuickGraphicsDevicePrivate;
66
};
67
68
QT_END_NAMESPACE
69
70
#
endif
// QQUICKGRAPHICSDEVICE_H
QQuickGraphicsDevicePrivate
Definition
qquickgraphicsdevice_p.h:26
QQuickGraphicsDevice
The QQuickGraphicsDevice class provides an opaque container for native graphics objects representing ...
Definition
qquickgraphicsdevice.h:27
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qsequentialanimationgroup.cpp:47
qtdeclarative
src
quick
items
qquickgraphicsdevice.h
Generated on
for Qt by
1.18.0