En esta página

QRhiAdapter Class

Representa un dispositivo gráfico físico. 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.10

Funciones Públicas

virtual QRhiDriverInfo info() const = 0

Descripción detallada

Algunos backends de QRhi apuntan a APIs gráficas que exponen el concepto de adapters o physical devices. Llama a la función estática enumerateAdapters() para recuperar una lista de los adaptadores presentes en el sistema. Pasa uno de los objetos QRhiAdapter devueltos a create() para solicitar el uso del adaptador o dispositivo físico al que corresponde el QRhiAdapter. Aparte de exponer el QRhiDriverInfo, QRhiAdapter debe ser tratado como un handle opaco.

Nota: Con Vulkan, el QRhiAdapter es válido sólo mientras el QVulkanInstance que se utilizó para enumerateAdapters() sea válido. Esto también significa que un QRhiAdapter está ligado a la instancia Vulkan (QVulkanInstance, VkInstance) y no puede ser usado en el contexto de otra instancia Vulkan.

Nota: Esta es una API RHI con garantías de compatibilidad limitadas, ver QRhi para más detalles.

Documentación de las funciones de los miembros

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

Devuelve el correspondiente QRhiDriverInfo.

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