QRhiAdapter Class

실제 그래픽 장치를 나타냅니다. 더 보기...

헤더: #include <rhi/qrhi.h>
CMake: find_package(Qt6 REQUIRED COMPONENTS Gui)
target_link_libraries(mytarget PRIVATE Qt6::GuiPrivate)
qmake: QT += gui-private
이후: Qt 6.10

공용 함수

virtual QRhiDriverInfo info() const = 0

자세한 설명

일부 QRhi 백엔드는 adapters 또는 physical devices 의 개념을 노출하는 그래픽 API를 대상으로 합니다. 정적 enumerateAdapters() 함수를 호출하여 시스템에 존재하는 어댑터 목록을 검색합니다. 반환된 QRhiAdapter 객체 중 하나를 create()에 전달하여 해당 어댑터 또는 물리적 장치 사용을 요청합니다. QRhiDriverInfo 를 노출하는 것 외에 QRhiAdapter는 불투명 핸들로 처리됩니다.

참고: 벌칸에서는 enumerateAdapters()에 사용된 QVulkanInstance 이 유효한 경우에만 QRhiAdapter가 유효합니다. 이는 또한 QRhiAdapter가 Vulkan 인스턴스(QVulkanInstance, VkInstance)에 연결되어 있으며 다른 Vulkan 인스턴스의 컨텍스트에서 사용할 수 없음을 의미합니다.

참고: 이 함수는 호환성이 제한적으로 보장되는 RHI API이며, 자세한 내용은 QRhi 을 참조하세요.

멤버 함수 문서

[pure virtual] QRhiDriverInfo QRhiAdapter::info() const

해당 QRhiDriverInfo 을 반환합니다.

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