QRhiVulkanNativeHandles Struct
Collects device, queue, and other Vulkan objects that are used by the QRhi. More...
Header: | #include <QRhiVulkanNativeHandles> |
CMake: | find_package(Qt6 REQUIRED COMPONENTS Gui) target_link_libraries(mytarget PRIVATE Qt6::Gui) |
qmake: | QT += gui |
Since: | Qt 6.6 |
Inherits: | QRhiNativeHandles |
Public Variables
VkDevice | dev |
VkQueue | gfxQueue |
quint32 | gfxQueueFamilyIdx |
quint32 | gfxQueueIdx |
QVulkanInstance * | inst |
VkPhysicalDevice | physDev |
void * | vmemAllocator |
Detailed Description
Note: Ownership of the Vulkan objects is never transferred.
Note: This is a RHI API with limited compatibility guarantees, see QRhi for details.
Member Variable Documentation
VkDevice QRhiVulkanNativeHandles::dev
When wanting to import not just a physical device, but also use an already existing VkDevice, set this and the graphics queue index and family index.
VkQueue QRhiVulkanNativeHandles::gfxQueue
Output only, not used by QRhi::create(), only set by the QRhi::nativeHandles() accessor. The graphics VkQueue used by the QRhi.
quint32 QRhiVulkanNativeHandles::gfxQueueFamilyIdx
Graphics queue family index.
quint32 QRhiVulkanNativeHandles::gfxQueueIdx
Graphics queue index.
QVulkanInstance *QRhiVulkanNativeHandles::inst
Output only, not used by QRhi::create(), only set by the QRhi::nativeHandles() accessor. The QVulkanInstance used by the QRhi.
VkPhysicalDevice QRhiVulkanNativeHandles::physDev
When different from nullptr
, specifies the Vulkan physical device to use.
void *QRhiVulkanNativeHandles::vmemAllocator
Relevant only when importing an existing memory allocator object, leave it set to nullptr
otherwise.
© 2024 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.