summaryrefslogtreecommitdiffstats
path: root/src/plugins/platforms/android/qandroidplatformvulkaninstance.h
blob: ad7de71867a24ef6fba80472721d32209b270978 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
// Copyright (C) 2017 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only

#ifndef QANDROIDPLATFORMVULKANINSTANCE_H
#define QANDROIDPLATFORMVULKANINSTANCE_H

#include <QtGui/private/qbasicvulkanplatforminstance_p.h>
#include <QLibrary>

QT_BEGIN_NAMESPACE

class QAndroidPlatformVulkanInstance : public QBasicPlatformVulkanInstance
{
public:
    QAndroidPlatformVulkanInstance(QVulkanInstance *instance);
    ~QAndroidPlatformVulkanInstance();

    void createOrAdoptInstance() override;

private:
    QVulkanInstance *m_instance;
    QLibrary m_lib;
};

QT_END_NAMESPACE

#endif // QANDROIDPLATFORMVULKANINSTANCE_H