QRhiVulkanNativeHandles Struct

Collects device, queue, and other Vulkan objects that are used by the QRhi . 更多...

头: #include <QRhiVulkanNativeHandles>
CMake: find_package(Qt6 REQUIRED COMPONENTS Gui)
target_link_libraries(mytarget PRIVATE Qt6::Gui)
qmake: QT += gui
Since: Qt 6.6
继承: QRhiNativeHandles

公共变量

VkDevice dev
VkQueue gfxQueue
quint32 gfxQueueFamilyIdx
quint32 gfxQueueIdx
QVulkanInstance * inst
VkPhysicalDevice physDev
void * vmemAllocator

详细描述

注意: Ownership of the Vulkan objects is never transferred.

注意: This is a RHI API with limited compatibility guarantees, see QRhi 了解细节。

成员变量文档编制

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 用于 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 否则。