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 |
メンバ変数のドキュメント
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() アクセサによってのみ設定されます。QRhi で使用されるQVulkanInstance です。
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.