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
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// Qt-Security score:significant reason:default
4
6
8
9QAndroidPlatformVulkanInstance::QAndroidPlatformVulkanInstance(QVulkanInstance *instance)
10 : m_instance(instance)
11{
12 m_lib.setFileName(QStringLiteral("vulkan"));
13
14 if (!m_lib.load()) {
15 qWarning("Failed to load %s", qPrintable(m_lib.fileName()));
16 return;
17 }
18
19 init(&m_lib);
20}
21
22void QAndroidPlatformVulkanInstance::createOrAdoptInstance()
23{
24 initInstance(m_instance, QByteArrayList() << QByteArrayLiteral("VK_KHR_android_surface"));
25}
26
27QAndroidPlatformVulkanInstance::~QAndroidPlatformVulkanInstance()
28{
29}
30
31QT_END_NAMESPACE
Combined button and popup list for selecting options.