本页内容

QRhiVulkanNativeHandles Struct

汇总了QRhi 所使用的设备、队列及其他Vulkan对象。更多内容...

头文件: #include <rhi/qrhi.h>
CMake: find_package(Qt6 REQUIRED COMPONENTS GuiPrivate)
target_link_libraries(mytarget PRIVATE Qt6::GuiPrivate)
qmake: QT += gui-private
自: Qt 6.6
继承自: QRhiNativeHandles

公共变量

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

详细说明

注意: Vulkan 对象的所有权 绝不会被转移。

注意:这是一个 兼容性保证有限的 RHI API,详情请参阅QRhi 。

成员变量文档

VkDevice QRhiVulkanNativeHandles::dev

如果不仅想导入物理设备,还想使用现有的 VkDevice,请设置此选项以及图形队列索引和家族索引。

VkQueue QRhiVulkanNativeHandles::gfxQueue

仅用于输出,QRhi::create() 不使用该参数,仅由QRhi::nativeHandles() 访问器设置。QRhi 使用的图形 VkQueue。

quint32 QRhiVulkanNativeHandles::gfxQueueFamilyIdx

图形队列家族索引。

quint32 QRhiVulkanNativeHandles::gfxQueueIdx

图形队列索引。

QVulkanInstance *QRhiVulkanNativeHandles::inst

仅用于输出,QRhi::create() 方法不使用该属性,仅由QRhi::nativeHandles() 访问器设置。该QVulkanInstance 由QRhi 方法使用。

VkPhysicalDevice QRhiVulkanNativeHandles::physDev

如果与 `nullptr` 不同,则指定要使用的 Vulkan 物理设备。

void *QRhiVulkanNativeHandles::vmemAllocator

仅在导入现有的内存分配器对象时才相关,否则请将其保留为nullptr 。

© 2026 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.