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#if defined(Q_OS_WIN)
25# include <QtMultimediaTestLib/private/qwindowsd3d11testdevicecontext_p.h>
26#endif
27
28QT_BEGIN_NAMESPACE
29
30namespace QtMultimediaTest {
31
33
34#if QT_CONFIG(opengl)
35struct OffscreenGlRhi
36{
37 // the QRhi must be destroyed before the QOffscreenSurface it was built from.
40};
41
43#endif
44
45#if QT_CONFIG(vulkan)
47{
48 // the QRhi must be destroyed before the QVulkanInstance it was built from.
51};
52
53// Requests Vulkan 1.1 (so that callers relying on functionality promoted to core in 1.1, e.g.
54// vkGetPhysicalDeviceProperties2 or VK_KHR_external_memory, don't need to enable it as an
55// extension) and any device extensions the caller asks for (e.g. "VK_KHR_external_memory_fd").
58#endif
59
60#if QT_CONFIG(metal)
62#endif
63
64#if defined(Q_OS_WIN)
68#endif
69
70q23::expected<QByteArray, QString> readBackPlane(QRhi &, quint64 handle, QSize planeSize,
72
73#if QT_CONFIG(opengl)
75#endif
76
77} // namespace QtMultimediaTest
78
79QT_END_NAMESPACE
80
81#endif // RHI_SUPPORT_P_H
Combined button and popup list for selecting options.
q23::expected< QByteArray, QString > readBackPlane(QRhi &rhi, quint64 handle, QSize planeSize, QRhiTexture::Format format)
std::unique_ptr< QRhi > createNullRhi()