![]() |
Qt 6.x
The Qt SDK
|
\inmodule QtGui More...
\inmodule QtGui
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.