このページでは

QRhiDriverInfo Struct

初期化されたQRhi によって使用される、物理デバイス、アダプタ、またはグラフィックスAPIの実装について説明します。詳細...

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

パブリック型

enum DeviceType { UnknownDevice, IntegratedDevice, DiscreteDevice, ExternalDevice, VirtualDevice, CpuDevice }

パブリック変数

quint64 deviceId
QByteArray deviceName
QRhiDriverInfo::DeviceType deviceType
quint64 vendorId

詳細な説明

グラフィックス API は、さまざまなレベルや種類の情報を提供します。 すべての API で利用可能な唯一の値は、deviceName です。これは、物理デバイスやアダプタに関する自由記述の説明、あるいはGL_VENDOR 、GL_RENDERER 、GL_VERSION で報告される文字列の組み合わせです。deviceId は、OpenGL では常に 0 です。vendorId は、OpenGL および Metal では常に 0 です。deviceType は、OpenGL および Direct 3D では常にUnknownDevice です。

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

メンバ型のドキュメント

enum QRhiDriverInfo::DeviceType

情報が利用可能な場合、グラフィックスデバイスのタイプを指定します。

実際には、これはVulkanおよびMetalでのみ適用されます。Direct 3D 11および12では、ソフトウェアフラグが設定されたアダプタを使用すると、値はCpuDevice となります。それ以外の場合、およびOpenGLでは、値は常にUnknownDeviceとなります。

定数値
QRhiDriverInfo::UnknownDevice0
QRhiDriverInfo::IntegratedDevice1
QRhiDriverInfo::DiscreteDevice2
QRhiDriverInfo::ExternalDevice3
QRhiDriverInfo::VirtualDevice4
QRhiDriverInfo::CpuDevice5

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

quint64 QRhiDriverInfo::deviceId

「QRhi::driverInfo()」も参照してください 。

QByteArray QRhiDriverInfo::deviceName

「QRhi::driverInfo()」も参照してください 。

QRhiDriverInfo::DeviceType QRhiDriverInfo::deviceType

QRhi::driverInfo() およびQRhiDriverInfo::DeviceTypeも参照してください 。

quint64 QRhiDriverInfo::vendorId

「QRhi::driverInfo()」も参照してください 。

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