Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
qandroidplatformvulkaninstance.cpp
Go to the documentation of this file.
1// Copyright (C) 2017 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
5
7
9 : m_instance(instance)
10{
11 m_lib.setFileName(QStringLiteral("vulkan"));
12
13 if (!m_lib.load()) {
14 qWarning("Failed to load %s", qPrintable(m_lib.fileName()));
15 return;
16 }
17
18 init(&m_lib);
19}
20
22{
23 initInstance(m_instance, QByteArrayList() << QByteArrayLiteral("VK_KHR_android_surface"));
24}
25
27{
28}
29
QAndroidPlatformVulkanInstance(QVulkanInstance *instance)
void initInstance(QVulkanInstance *instance, const QByteArrayList &extraExts)
\inmodule QtCore
bool load()
Loads the library and returns true if the library was loaded successfully; otherwise returns false.
Definition qlibrary.cpp:806
QString fileName
the file name of the library
Definition qlibrary.h:19
void setFileName(const QString &fileName)
Definition qlibrary.cpp:946
The QVulkanInstance class represents a native Vulkan instance, enabling Vulkan rendering onto a QSurf...
Combined button and popup list for selecting options.
#define QByteArrayLiteral(str)
Definition qbytearray.h:52
#define qWarning
Definition qlogging.h:162
#define qPrintable(string)
Definition qstring.h:1391
#define QStringLiteral(str)