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 입니다.

참고: 이 API는 호환성이 제한적으로 보장되는 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.