QRhiDriverInfo Struct
Descreve o dispositivo físico, o adaptador ou a implementação da API gráfica utilizada por um objeto ` QRhi` inicializado. Mais...
| Cabeçalho: | #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 } |
Variáveis públicas
| quint64 | deviceId |
| QByteArray | deviceName |
| QRhiDriverInfo::DeviceType | deviceType |
| quint64 | vendorId |
Descrição detalhada
As APIs gráficas oferecem diferentes níveis e tipos de informação. O único valor disponível em todas as APIs é o ` deviceName`, que é uma descrição em texto livre do dispositivo físico ou adaptador, ou uma combinação das cadeias de caracteres relatadas para ` GL_VENDOR ` + ` GL_RENDERER ` + ` GL_VERSION`. O ` deviceId ` é sempre 0 para OpenGL. O ` vendorId ` é sempre 0 para OpenGL e Metal. O ` deviceType ` é sempre ` UnknownDevice ` para OpenGL e Direct 3D.
Observação: Esta é uma API RHI com garantias de compatibilidade limitadas; consulte QRhi para obter detalhes.
Documentação do tipo de membro
enum QRhiDriverInfo::DeviceType
Especifica o tipo do dispositivo gráfico, quando a informação estiver disponível.
Na prática, isso só se aplica ao Vulkan e ao Metal. Com o Direct 3D 11 e 12, o uso de um adaptador com o sinalizador de software definido resulta no valor “ CpuDevice ”. Caso contrário, e com o OpenGL, o valor é sempre “UnknownDevice”.
| Constante | Valor |
|---|---|
QRhiDriverInfo::UnknownDevice | 0 |
QRhiDriverInfo::IntegratedDevice | 1 |
QRhiDriverInfo::DiscreteDevice | 2 |
QRhiDriverInfo::ExternalDevice | 3 |
QRhiDriverInfo::VirtualDevice | 4 |
QRhiDriverInfo::CpuDevice | 5 |
Documentação da variável de membro
quint64 QRhiDriverInfo::deviceId
Veja também QRhi::driverInfo().
QByteArray QRhiDriverInfo::deviceName
Veja também QRhi::driverInfo().
QRhiDriverInfo::DeviceType QRhiDriverInfo::deviceType
Veja também QRhi::driverInfo() e QRhiDriverInfo::DeviceType.
quint64 QRhiDriverInfo::vendorId
Veja também 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.