QRhiAdapter Class
Representa un dispositivo gráfico físico. Más...
| Encabezado: | #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 » están orientados a API gráficas que exponen el concepto de « adapters » o « physical devices ». Llama a la función estática « enumerateAdapters()» para obtener una lista de los adaptadores presentes en el sistema. Pase 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, el QRhiAdapter debe tratarse como un identificador opaco.
Nota: Con Vulkan, el QRhiAdapter solo es válido mientras sea válido el QVulkanInstance utilizado para enumerateAdapters(). Esto también significa que un QRhiAdapter está vinculado a la instancia de Vulkan (QVulkanInstance, VkInstance) y no puede utilizarse en el contexto de otra instancia de Vulkan.
Nota: Se trata de una API RHI con garantías de compatibilidad limitadas; consulta QRhi para obtener más detalles.
Documentación de las funciones miembro
[pure virtual] QRhiDriverInfo QRhiAdapter::info() const
Devuelve el objeto ` QRhiDriverInfo` correspondiente.
© 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.