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 에 대해 보고된 문자열의 조합입니다. OpenGL의 경우 deviceId 는 항상 0입니다. OpenGL 및 Metal의 경우 vendorId 는 항상 0입니다. OpenGL 및 Direct 3D의 경우 deviceType 는 항상 UnknownDevice 입니다.
참고: 이는 호환성 보장이 제한된 RHI API입니다. 자세한 내용은 QRhi 를 참조하십시오.
멤버 유형 설명서
enum QRhiDriverInfo::DeviceType
정보를 얻을 수 있는 경우, 그래픽 장치의 유형을 지정합니다.
실제로는 Vulkan 및 Metal에서만 적용됩니다. Direct 3D 11 및 12의 경우, 소프트웨어 플래그가 설정된 어댑터를 사용하면 값이 ` CpuDevice`가 됩니다. 그 외의 경우나 OpenGL에서는 값이 항상 `UnknownDevice`입니다.
| 상수 | 값 |
|---|---|
QRhiDriverInfo::UnknownDevice | 0 |
QRhiDriverInfo::IntegratedDevice | 1 |
QRhiDriverInfo::DiscreteDevice | 2 |
QRhiDriverInfo::ExternalDevice | 3 |
QRhiDriverInfo::VirtualDevice | 4 |
QRhiDriverInfo::CpuDevice | 5 |
멤버 변수 설명
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.