QRhiVulkanNativeHandles Struct

QRhi で使用されるデバイス、キュー、その他のVulkanオブジェクトを収集します

ヘッダー #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

詳細説明

注: 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 に設定する。

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