Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
rhi_support_p.h
Go to the documentation of this file.
1
// Copyright (C) 2026 The Qt Company Ltd.
2
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
3
4
//
5
// W A R N I N G
6
// -------------
7
//
8
// This file is not part of the Qt API. It exists purely as an
9
// implementation detail. This header file may change from version to
10
// version without notice, or even be removed.
11
//
12
// We mean it.
13
//
14
15
#
ifndef
RHI_SUPPORT_P_H
16
#
define
RHI_SUPPORT_P_H
17
18
#
include
<
QtGui
/
qoffscreensurface
.
h
>
19
#
include
<
QtGui
/
rhi
/
qrhi
.
h
>
20
#
include
<
QtCore
/
private
/
qexpected_p
.
h
>
21
22
#
include
<
memory
>
23
24
namespace
QtMultimediaTest
{
25
26
#
if
QT_CONFIG
(
opengl
)
27
struct
OffscreenGlRhi
28
{
29
// the QRhi must be destroyed before the QOffscreenSurface it was built from.
30
std
::
unique_ptr
<
QOffscreenSurface
>
fallbackSurface
;
31
std
::
unique_ptr
<
QRhi
>
rhi
;
32
};
33
34
q23
::
expected
<
OffscreenGlRhi
,
QString
>
createOffscreenGlRhi
();
35
#
endif
36
37
#
if
QT_CONFIG
(
metal
)
38
std
::
unique_ptr
<
QRhi
>
createOffscreenMetalRhi
();
39
#
endif
40
41
q23
::
expected
<
QByteArray
,
QString
>
readBackPlane
(QRhi &, quint64 handle, QSize planeSize,
42
QRhiTexture
::
Format
);
43
44
}
// namespace QtMultimediaTest
45
46
#
endif
// RHI_SUPPORT_P_H
QtMultimediaTest
Definition
qvideoframetestutils.cpp:8
QtMultimediaTest::readBackPlane
q23::expected< QByteArray, QString > readBackPlane(QRhi &rhi, quint64 handle, QSize planeSize, QRhiTexture::Format format)
Definition
rhi_support.cpp:41
qtmultimedia
src
multimediatestlib
rhi_support_p.h
Generated on
for Qt by
1.16.1