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
5
7
8QAndroidPlatformVulkanInstance::QAndroidPlatformVulkanInstance(QVulkanInstance *instance)
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
21void QAndroidPlatformVulkanInstance::createOrAdoptInstance()
22{
23 initInstance(m_instance, QByteArrayList() << QByteArrayLiteral("VK_KHR_android_surface"));
24}
25
26QAndroidPlatformVulkanInstance::~QAndroidPlatformVulkanInstance()
27{
28}
29
30QT_END_NAMESPACE