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
qohosplatformvulkaninstance.cpp
Go to the documentation of this file.
1
// Copyright (C) 2026 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
"qohosplatformvulkaninstance.h"
5
#
include
<
QtCore
/
qdebug
.
h
>
6
7
using
namespace
Qt::Literals::StringLiterals;
8
9
QT_BEGIN_NAMESPACE
10
11
QOhosPlatformVulkanInstance::QOhosPlatformVulkanInstance(QVulkanInstance *instance)
12
: m_instance(instance)
13
{
14
m_lib.setFileName(QStringLiteral(
"vulkan"
));
15
if
(!m_lib.load()) {
16
qWarning(
"Failed to load %s"
, qPrintable(m_lib.fileName()));
17
return
;
18
}
19
20
init(&m_lib);
21
}
22
23
void
QOhosPlatformVulkanInstance::createOrAdoptInstance()
24
{
25
initInstance(m_instance, {
"VK_OHOS_surface"_ba
});
26
}
27
28
QT_END_NAMESPACE
qtbase
src
plugins
platforms
ohos
qohosplatformvulkaninstance.cpp
Generated on
for Qt by
1.16.1