diff options
author | Frank Richter <frank.richter@gmail.com> | 2019-08-25 14:19:20 +0200 |
---|---|---|
committer | Frank Richter <frank.richter@gmail.com> | 2019-09-02 12:10:25 +0200 |
commit | 699a0d2deea754ce581621ad0934da3360e63cc8 (patch) | |
tree | 5649274fd14da691000765192c0a06151b8fd957 /src/gui/vulkan/qvulkanwindow.cpp | |
parent | 6b884d2aa129e6f8d552cbaa9dbfa034eb0aca3e (diff) |
QVulkanWindow: Add function to retrieve graphics queue family index
Change-Id: I51e4a006e82fbcd998815da3de6daa80558a973f
Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>
Diffstat (limited to 'src/gui/vulkan/qvulkanwindow.cpp')
-rw-r--r-- | src/gui/vulkan/qvulkanwindow.cpp | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/gui/vulkan/qvulkanwindow.cpp b/src/gui/vulkan/qvulkanwindow.cpp index 6d12377a60..3eabf72960 100644 --- a/src/gui/vulkan/qvulkanwindow.cpp +++ b/src/gui/vulkan/qvulkanwindow.cpp @@ -2211,6 +2211,23 @@ VkQueue QVulkanWindow::graphicsQueue() const } /*! + Returns the family index of the active graphics queue. + + \note Calling this function is only valid from the invocation of + QVulkanWindowRenderer::initResources() up until + QVulkanWindowRenderer::releaseResources(). Implementations of + QVulkanWindowRenderer::updateQueueCreateInfo() can also call this + function. + + \since 5.15 + */ +uint32_t QVulkanWindow::graphicsQueueFamilyIndex() const +{ + Q_D(const QVulkanWindow); + return d->gfxQueueFamilyIdx; +} + +/*! Returns the active graphics command pool. \note Calling this function is only valid from the invocation of |