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
4
#
include
"qandroidplatformvulkaninstance.h"
5
6
QT_BEGIN_NAMESPACE
7
8
QAndroidPlatformVulkanInstance::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
21
void
QAndroidPlatformVulkanInstance::createOrAdoptInstance()
22
{
23
initInstance(m_instance, QByteArrayList() << QByteArrayLiteral(
"VK_KHR_android_surface"
));
24
}
25
26
QAndroidPlatformVulkanInstance::~QAndroidPlatformVulkanInstance()
27
{
28
}
29
30
QT_END_NAMESPACE
QPlatformGraphicsBufferHelper
\inmodule QtGui
qtbase
src
plugins
platforms
android
qandroidplatformvulkaninstance.cpp
Generated on
for Qt by
1.14.0