QRhiAdapter Class
Rappresenta un dispositivo grafico fisico. Altro...
| Intestazione: | #include <rhi/qrhi.h> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS GuiPrivate) target_link_libraries(mytarget PRIVATE Qt6::GuiPrivate) |
| qmake: | QT += gui-private |
| A partire da: | Qt 6.10 |
Funzioni pubbliche
| virtual QRhiDriverInfo | info() const = 0 |
Descrizione dettagliata
Alcuni backend di QRhi sono destinati ad API grafiche che espongono il concetto di adapters o physical devices. Chiamare la funzione statica enumerateAdapters() per recuperare un elenco degli adattatori presenti nel sistema. Passare uno degli oggetti QRhiAdapter restituiti a ` create()` per richiedere l'utilizzo dell'adattatore o del dispositivo fisico a cui corrisponde il QRhiAdapter. Oltre a esporre l'QRhiDriverInfo, QRhiAdapter deve essere trattato come un handle opaco.
Nota: con Vulkan, il QRhiAdapter è valido solo fintanto che l’ QVulkanInstance utilizzato per ` enumerateAdapters()` è valido. Ciò significa anche che un QRhiAdapter è legato all’istanza Vulkan (QVulkanInstance, VkInstance) e non può essere utilizzato nel contesto di un’altra istanza Vulkan.
Nota: si tratta di un'API RHI con garanzie di compatibilità limitate; per ulteriori dettagli, consultare QRhi.
Documentazione delle funzioni membro
[pure virtual] QRhiDriverInfo QRhiAdapter::info() const
Restituisce il corrispondente 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.