diff options
author | Laszlo Agocs <laszlo.agocs@qt.io> | 2020-06-24 15:59:56 +0200 |
---|---|---|
committer | Laszlo Agocs <laszlo.agocs@qt.io> | 2020-06-26 14:42:42 +0200 |
commit | db61e43c81f4b5ed8c36365f63c2e2fb81e2a1e7 (patch) | |
tree | 5da4247a52a91872f53464e95c54611ca6db6349 /src/gui/rhi/qrhivulkan_p_p.h | |
parent | b60f516aca5196a49e3cc53e7620c2b5da3f507c (diff) |
rhi: Enable specifying just an adapter or phys dev
Required by OpenXR. A VkPhysicalDevice or an adapter LUID + feature
level pair should be adoptable while leaving the rest (device, queue,
etc. setup) to QRhi as normal.
Change-Id: Iada0972671b037b4efb03e7831b7c9b8c5f2393d
Reviewed-by: Andy Nichols <andy.nichols@qt.io>
Diffstat (limited to 'src/gui/rhi/qrhivulkan_p_p.h')
-rw-r--r-- | src/gui/rhi/qrhivulkan_p_p.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gui/rhi/qrhivulkan_p_p.h b/src/gui/rhi/qrhivulkan_p_p.h index 84caa1a627..5e6bfa6258 100644 --- a/src/gui/rhi/qrhivulkan_p_p.h +++ b/src/gui/rhi/qrhivulkan_p_p.h @@ -645,7 +645,7 @@ struct QVkSwapChain : public QRhiSwapChain class QRhiVulkan : public QRhiImplementation { public: - QRhiVulkan(QRhiVulkanInitParams *params, QRhiVulkanNativeHandles *importDevice = nullptr); + QRhiVulkan(QRhiVulkanInitParams *params, QRhiVulkanNativeHandles *importParams = nullptr); bool create(QRhi::Flags flags) override; void destroy() override; @@ -824,6 +824,7 @@ public: bool importedCmdPool = false; VkCommandPool cmdPool = VK_NULL_HANDLE; int gfxQueueFamilyIdx = -1; + int gfxQueueIdx = 0; VkQueue gfxQueue = VK_NULL_HANDLE; bool hasCompute = false; quint32 timestampValidBits = 0; |