QRhiVulkanNativeHandles Struct
Recoge el dispositivo, la cola y otros objetos Vulkan que son utilizados por el QRhi. 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.6 |
| Hereda: | QRhiNativeHandles |
Variables Públicas
| VkDevice | dev |
| VkQueue | gfxQueue |
| quint32 | gfxQueueFamilyIdx |
| quint32 | gfxQueueIdx |
| QVulkanInstance * | inst |
| VkPhysicalDevice | physDev |
| void * | vmemAllocator |
Descripción detallada
Nota: La propiedad de los objetos Vulkan nunca se transfiere.
Nota: Esta es una API RHI con garantías de compatibilidad limitadas, consulte QRhi para más detalles.
Documentación de las variables miembro
VkDevice QRhiVulkanNativeHandles::dev
Si desea importar no sólo un dispositivo físico, sino también utilizar un VkDevice ya existente, establezca esto y el índice de cola de gráficos y el índice de familia.
VkQueue QRhiVulkanNativeHandles::gfxQueue
Sólo salida, no utilizada por QRhi::create(), sólo establecida por el accesorio QRhi::nativeHandles(). La cola gráfica VkQueue utilizada por el accesorio QRhi.
quint32 QRhiVulkanNativeHandles::gfxQueueFamilyIdx
Índice de la familia de colas de gráficos.
quint32 QRhiVulkanNativeHandles::gfxQueueIdx
Índice de la cola de gráficos.
QVulkanInstance *QRhiVulkanNativeHandles::inst
Sólo salida, no utilizado por QRhi::create(), sólo establecido por el accesor QRhi::nativeHandles(). El QVulkanInstance utilizado por el QRhi.
VkPhysicalDevice QRhiVulkanNativeHandles::physDev
Cuando es diferente de nullptr, especifica el dispositivo físico Vulkan a utilizar.
void *QRhiVulkanNativeHandles::vmemAllocator
Relevante sólo cuando se importa un objeto asignador de memoria existente, de lo contrario déjelo en nullptr.
© 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.