Nesta página

QRhiVulkanNativeHandles Struct

Reúne objetos de dispositivo, fila e outros objetos Vulkan utilizados pelo ` QRhi`. Mais...

Cabeçalho: #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
Herda de: QRhiNativeHandles

Variáveis públicas

VkDevice dev
VkQueue gfxQueue
quint32 gfxQueueFamilyIdx
quint32 gfxQueueIdx
QVulkanInstance *inst
VkPhysicalDevice physDev
void *vmemAllocator

Descrição detalhada

Observação: a propriedade dos objetos Vulkan nunca é transferida.

Observação: Esta é uma API RHI com garantias de compatibilidade limitadas; consulte QRhi para obter detalhes.

Documentação das variáveis de membro

VkDevice QRhiVulkanNativeHandles::dev

Quando quiser importar não apenas um dispositivo físico, mas também utilizar um VkDevice já existente, defina este parâmetro, bem como o índice da fila gráfica e o índice da família.

VkQueue QRhiVulkanNativeHandles::gfxQueue

Apenas para saída, não é utilizado pelo ` QRhi::create()`; é definido apenas pelo acessador ` QRhi::nativeHandles()`. A fila gráfica `VkQueue` utilizada pelo ` QRhi`.

quint32 QRhiVulkanNativeHandles::gfxQueueFamilyIdx

Índice da família de filas gráficas.

quint32 QRhiVulkanNativeHandles::gfxQueueIdx

Índice da fila de gráficos.

QVulkanInstance *QRhiVulkanNativeHandles::inst

Apenas para saída, não é utilizado pela função ` QRhi::create()`, sendo definido apenas pelo acessador ` QRhi::nativeHandles()`. O ` QVulkanInstance ` é utilizado pela função ` QRhi`.

VkPhysicalDevice QRhiVulkanNativeHandles::physDev

Quando diferente de nullptr, especifica o dispositivo físico do Vulkan a ser utilizado.

void *QRhiVulkanNativeHandles::vmemAllocator

Relevante apenas ao importar um objeto alocador de memória já existente; caso contrário, mantenha a configuração como “ 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.