En esta página

QRhiVulkanNativeHandles Struct

Recopila objetos de dispositivo, cola y otros objetos de Vulkan que utiliza el ` QRhi`. Más información...

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.6
Heredan de: 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: Se trata de una API de RHI con garantías de compatibilidad limitadas; consulta QRhi para obtener más detalles.

Documentación de las variables miembro

VkDevice QRhiVulkanNativeHandles::dev

Si deseas importar no solo un dispositivo físico, sino también utilizar un VkDevice ya existente, configura este parámetro, así como el índice de la cola gráfica y el índice de familia.

VkQueue QRhiVulkanNativeHandles::gfxQueue

Solo salida; no lo utiliza QRhi::create(), solo lo establece el accesor QRhi::nativeHandles(). La cola de gráficos VkQueue utilizada por QRhi.

quint32 QRhiVulkanNativeHandles::gfxQueueFamilyIdx

Índice de la familia de colas gráficas.

quint32 QRhiVulkanNativeHandles::gfxQueueIdx

Índice de la cola de gráficos.

QVulkanInstance *QRhiVulkanNativeHandles::inst

Solo salida; no lo utiliza QRhi::create(), solo lo establece el accesor QRhi::nativeHandles(). El QVulkanInstance que utiliza QRhi.

VkPhysicalDevice QRhiVulkanNativeHandles::physDev

Si es distinto de nullptr, especifica el dispositivo físico de Vulkan que se va a utilizar.

void *QRhiVulkanNativeHandles::vmemAllocator

Solo es relevante al importar un objeto de asignador de memoria ya existente; en caso contrario, déjalo configurado 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.