Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
QVulkanInstance Class Reference

The QVulkanInstance class represents a native Vulkan instance, enabling Vulkan rendering onto a QSurface. More...

+ Collaboration diagram for QVulkanInstance:

Detailed Description

The QVulkanInstance class represents a native Vulkan instance, enabling Vulkan rendering onto a QSurface.

Since
5.10

\inmodule QtGui

\l{https://www.khronos.org/vulkan/}{Vulkan} is a cross-platform, explicit graphics and compute API. This class provides support for loading a Vulkan library and creating an instance in a cross-platform manner. For an introduction on Vulkan instances, refer \l{https://www.khronos.org/registry/vulkan/specs/1.0/html/vkspec.html#initialization-instances}{to section 3.2 of the specification}.

Note
Platform-specific support for Vulkan instances and windows with Vulkan-capable surfaces is provided by the various platform plugins. Not all of them will support Vulkan, however. When running on such a platform, create() will fail and always return false.
Vulkan support may get automatically disabled for a given Qt build due to not having the necessary Vulkan headers available at build time. When this is the case, and the output of configure indicates Vulkan support is disabled, the QVulkan* classes will be unavailable.
Some functions changed their signature between the various Vulkan header revisions. When building Qt and only headers with the old, conflicting signatures are present in a system, Vulkan support will get disabled. It is recommended to use headers from Vulkan 1.0.39 or newer.

The documentation for this class was generated from the following file: