このページでは

QRhiAdapter Class

物理的なグラフィックデバイスを表します。詳細...

ヘッダー: #include <rhi/qrhi.h>
CMake: find_package(Qt6 REQUIRED COMPONENTS GuiPrivate)
target_link_libraries(mytarget PRIVATE Qt6::GuiPrivate)
qmake: QT += gui-private
以下のように: Qt 6.10

パブリック関数

virtual QRhiDriverInfo info() const = 0

詳細な説明

一部のQRhi バックエンドは、adapters またはphysical devices の概念を公開するグラフィックスAPIを対象としています。静的関数enumerateAdapters()を呼び出すと、システムに存在するアダプタのリストを取得できます。 返されたQRhiAdapterオブジェクトのいずれかをcreate()に渡すことで、そのQRhiAdapterに対応するアダプタまたは物理デバイスの使用を要求できます。QRhiDriverInfo を公開している点を除き、QRhiAdapterは不透明なハンドルとして扱う必要があります。

注: Vulkanでは 、QRhiAdapter は、enumerateAdapters() で使用されたQVulkanInstance が有効である間のみ有効です。これはまた、QRhiAdapter が Vulkan インスタンス(QVulkanInstance 、VkInstance )に紐付けられており、別の Vulkan インスタンスのコンテキストでは使用できないことを意味します。

注:これは 互換性の保証が限定的な RHI API です。詳細については、QRhi を参照してください。

メンバ関数のドキュメント

[pure virtual] QRhiDriverInfo QRhiAdapter::info() const

対応するQRhiDriverInfo を返します。

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