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
5
#
include
"qandroidplatformvulkaninstance.h"
6
7
QT_BEGIN_NAMESPACE
8
9
QAndroidPlatformVulkanInstance::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
22
void
QAndroidPlatformVulkanInstance::createOrAdoptInstance()
23
{
24
initInstance(m_instance, QByteArrayList() << QByteArrayLiteral(
"VK_KHR_android_surface"
));
25
}
26
27
QAndroidPlatformVulkanInstance::~QAndroidPlatformVulkanInstance()
28
{
29
}
30
31
QT_END_NAMESPACE
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qrandomaccessasyncfile_darwin.mm:17
qtbase
src
plugins
platforms
android
qandroidplatformvulkaninstance.cpp
Generated on
for Qt by
1.16.1