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
5#include <QtCore/qdebug.h>
6
7using namespace Qt::Literals::StringLiterals;
8
9QT_BEGIN_NAMESPACE
10
11QOhosPlatformVulkanInstance::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
23void QOhosPlatformVulkanInstance::createOrAdoptInstance()
24{
25 initInstance(m_instance, {"VK_OHOS_surface"_ba});
26}
27
28QT_END_NAMESPACE