summaryrefslogtreecommitdiffstats
path: root/src/gui/vulkan/qvulkaninstance.h
diff options
context:
space:
mode:
authorJiDe Zhang <zhangjide@uniontech.com>2022-05-01 22:55:58 +0800
committerJiDe Zhang <zhangjide@uniontech.com>2022-05-04 20:14:49 +0800
commit84491e555134ee7a5ae0d8cfec4b2e7a0cfe56cc (patch)
tree6671a0bb3a20f1122ee1cfe43b4de9c7c213d20c /src/gui/vulkan/qvulkaninstance.h
parent953512ec84f04e7a8c7c8ac2410ba6c6f34de2b8 (diff)
Export the QVulkanInstancePrivate class
When needs by the QVulkanInstance::setVkInstance to use a existing VkInstance to a QQuickWindow, the VkInstance maybe is from a non Qt render system, in the case, the QPlatformVulkanInstance object of QVulkanInstance is can't create from the QPA, the all vulkan information is need get from the VkInstance owner(eg, getInstanceProcAddr). But providing it with a public interface is not a good idea, so by exporting a private class, you can use a private interface where needed to achieve the above purpose. Task-number: QTBUG-103021 Change-Id: I0312adcf55cfd7d49889ed112ab237c0b3ab3ef6 Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>
Diffstat (limited to 'src/gui/vulkan/qvulkaninstance.h')
-rw-r--r--src/gui/vulkan/qvulkaninstance.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gui/vulkan/qvulkaninstance.h b/src/gui/vulkan/qvulkaninstance.h
index bfdaf1ab69..156d6cebfc 100644
--- a/src/gui/vulkan/qvulkaninstance.h
+++ b/src/gui/vulkan/qvulkaninstance.h
@@ -223,6 +223,7 @@ public:
void removeDebugOutputFilter(DebugFilter filter);
private:
+ friend class QVulkanInstancePrivate;
QScopedPointer<QVulkanInstancePrivate> d_ptr;
Q_DISABLE_COPY(QVulkanInstance)
};