summaryrefslogtreecommitdiffstats
path: root/src/gui/vulkan
diff options
context:
space:
mode:
authorLaszlo Agocs <laszlo.agocs@qt.io>2017-03-23 10:04:53 +0100
committerLaszlo Agocs <laszlo.agocs@qt.io>2017-03-23 11:55:05 +0000
commit95d4ac10e90dc3bb5c6d588b4fa7cb045d7b7fd7 (patch)
tree6d281e92b275fa55141630618f1f876d958f75f6 /src/gui/vulkan
parente3ea95f81fa526b36f04e4052265b0554604889a (diff)
Add missing class doc for QVulkanWindowRenderer
The functions are documented but the class does not show up in the docs without the \class. Change-Id: I8a7e4c82ba11354855ca272e5c6be59cf1419f14 Reviewed-by: Andy Nichols <andy.nichols@qt.io>
Diffstat (limited to 'src/gui/vulkan')
-rw-r--r--src/gui/vulkan/qvulkanwindow.cpp28
1 files changed, 24 insertions, 4 deletions
diff --git a/src/gui/vulkan/qvulkanwindow.cpp b/src/gui/vulkan/qvulkanwindow.cpp
index 2540a69426..7acc6f4c8e 100644
--- a/src/gui/vulkan/qvulkanwindow.cpp
+++ b/src/gui/vulkan/qvulkanwindow.cpp
@@ -252,6 +252,25 @@ Q_LOGGING_CATEGORY(lcVk, "qt.vulkan")
*/
/*!
+ \class QVulkanWindowRenderer
+ \inmodule QtGui
+ \since 5.10
+
+ \brief The QVulkanWindowRenderer class is used to implement the
+ application-specific rendering logic for a QVulkanWindow.
+
+ Applications typically subclass both QVulkanWindow and QVulkanWindowRenderer.
+ The former allows handling events, for example, input, while the latter allows
+ implementing the Vulkan resource management and command buffer building that
+ make up the application's rendering.
+
+ In addition to event handling, the QVulkanWindow subclass is responsible for
+ providing an implementation for QVulkanWindow::createRenderer() as well. This
+ is where the window and renderer get connected. A typical implementation will
+ simply create a new instance of a subclass of QVulkanWindowRenderer.
+ */
+
+/*!
Constructs a new QVulkanWindow with the given \a parent.
The surface type is set to QSurface::VulkanSurface.
@@ -1723,10 +1742,11 @@ void QVulkanWindowRenderer::releaseResources()
graphics queue are available via QVulkanWindow::device() and
QVulkanWindow::graphicsQueue(). Implementations can create additional
command buffers from the pool returned by
- QVulkanWindow::graphicsCommandPool(). For convenience, the index of the
- best performing host visible memory type index is exposed via
- QVulkanWindow::hostVisibleMemoryIndex(). All these accessors are safe to
- invoke from any thread.
+ QVulkanWindow::graphicsCommandPool(). For convenience, the index of a host
+ visible and device local memory type index are exposed via
+ QVulkanWindow::hostVisibleMemoryIndex() and
+ QVulkanWindow::deviceLocalMemoryIndex(). All these accessors are safe to be
+ called from any thread.
\sa QVulkanWindow::frameReady(), QVulkanWindow
*/