QRhiVulkanNativeHandles Struct
头文件: | #include <rhi/qrhi.h> |
CMake: | find_package(Qt6 REQUIRED COMPONENTS Gui) 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 |
成员变量文档
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
。
© 2025 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.