QRhiDriverInfo Struct

初期化されたQRhi で使用される物理デバイス、アダプター、またはグラフィックス API 実装を記述します。詳細...

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

パブリック型

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()も参照のこと

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