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
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
29
QAndroidPlatformVulkanInstance(QVulkanInstance *instance)
void initInstance(QVulkanInstance *instance, const QByteArrayList &extraExts)
bool load()
Loads the library and returns true if the library was loaded successfully; otherwise returns false.
Definition qlibrary.cpp:813
QString fileName
the file name of the library
Definition qlibrary.h:19
void setFileName(const QString &fileName)
Definition qlibrary.cpp:955
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
QList< QByteArray > QByteArrayList
#define qWarning
Definition qlogging.h:166
#define qPrintable(string)
Definition qstring.h:1531
#define QStringLiteral(str)