QRhiDriverInfo Struct
Describe el dispositivo físico, el adaptador o la implementación de la API gráfica que utiliza un QRhi inicializado. Más...
| Cabecera: | #include <rhi/qrhi.h> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS GuiPrivate)target_link_libraries(mytarget PRIVATE Qt6::GuiPrivate) |
| qmake: | QT += gui-private |
| Desde: | Qt 6.6 |
Tipos Públicos
| enum | DeviceType { UnknownDevice, IntegratedDevice, DiscreteDevice, ExternalDevice, VirtualDevice, CpuDevice } |
Variables Públicas
| quint64 | deviceId |
| QByteArray | deviceName |
| QRhiDriverInfo::DeviceType | deviceType |
| quint64 | vendorId |
Descripción Detallada
Las APIs gráficas ofrecen diferentes niveles y tipos de información. El único valor que está disponible en todas las APIs es el deviceName, que es una descripción de texto libre del dispositivo físico, adaptador, o es una combinación de las cadenas reportadas para GL_VENDOR + GL_RENDERER + GL_VERSION. deviceId es siempre 0 para OpenGL. vendorId es siempre 0 para OpenGL y Metal. deviceType es siempre UnknownDevice para OpenGL y Direct 3D.
Nota: Se trata de una API RHI con garantías de compatibilidad limitadas; consulte QRhi para obtener más información.
Documentación de tipos de miembros
enum QRhiDriverInfo::DeviceType
Especifica el tipo de dispositivo gráfico, cuando la información está disponible.
En la práctica, esto solo es aplicable con Vulkan y Metal. Con Direct 3D 11 y 12, el uso de un adaptador con la bandera de software establecida conduce al valor CpuDevice. De lo contrario, y con OpenGL, el valor es siempre UnknownDevice.
| Constante | Valor |
|---|---|
QRhiDriverInfo::UnknownDevice | 0 |
QRhiDriverInfo::IntegratedDevice | 1 |
QRhiDriverInfo::DiscreteDevice | 2 |
QRhiDriverInfo::ExternalDevice | 3 |
QRhiDriverInfo::VirtualDevice | 4 |
QRhiDriverInfo::CpuDevice | 5 |
Documentación de la variable miembro
quint64 QRhiDriverInfo::deviceId
Véase también QRhi::driverInfo().
QByteArray QRhiDriverInfo::deviceName
Véase también QRhi::driverInfo().
QRhiDriverInfo::DeviceType QRhiDriverInfo::deviceType
Véase también QRhi::driverInfo() y QRhiDriverInfo::DeviceType.
quint64 QRhiDriverInfo::vendorId
Véase también 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.