QRhiVulkanNativeHandles Struct
Sammelt Geräte-, Warteschlangen- und andere Vulkan-Objekte, die von QRhi verwendet werden. ...
Kopfzeile: | #include <rhi/qrhi.h> |
CMake: | find_package(Qt6 REQUIRED COMPONENTS Gui) target_link_libraries(mytarget PRIVATE Qt6::GuiPrivate) |
qmake: | QT += gui-private |
Since: | Qt 6.6 |
Vererbt: | QRhiNativeHandles |
Öffentliche Variablen
VkDevice | dev |
VkQueue | gfxQueue |
quint32 | gfxQueueFamilyIdx |
quint32 | gfxQueueIdx |
QVulkanInstance * | inst |
VkPhysicalDevice | physDev |
void * | vmemAllocator |
Detaillierte Beschreibung
Hinweis: Das Eigentum an den Vulkan-Objekten wird nie übertragen.
Hinweis: Dies ist eine RHI-API mit eingeschränkten Kompatibilitätsgarantien, siehe QRhi für Details.
Dokumentation der Mitgliedsvariablen
VkDevice QRhiVulkanNativeHandles::dev
Wenn Sie nicht nur ein physisches Gerät importieren, sondern auch ein bereits vorhandenes VkDevice verwenden möchten, legen Sie dies sowie den Index der Grafikwarteschlange und den Familienindex fest.
VkQueue QRhiVulkanNativeHandles::gfxQueue
Nur Ausgabe, nicht verwendet von QRhi::create(), nur gesetzt durch den Accessor QRhi::nativeHandles(). Die von QRhi verwendete Grafik-VkQueue.
quint32 QRhiVulkanNativeHandles::gfxQueueFamilyIdx
Index der Grafikwarteschlangenfamilie.
quint32 QRhiVulkanNativeHandles::gfxQueueIdx
Index der Grafik-Warteschlange.
QVulkanInstance *QRhiVulkanNativeHandles::inst
Nur Ausgabe, nicht von QRhi::create() verwendet, nur vom Accessor QRhi::nativeHandles() gesetzt. Die QVulkanInstance wird von QRhi verwendet.
VkPhysicalDevice QRhiVulkanNativeHandles::physDev
Unterscheidet sich von nullptr
, gibt das zu verwendende physikalische Vulkan-Gerät an.
void *QRhiVulkanNativeHandles::vmemAllocator
Nur relevant, wenn ein bestehendes Memory Allocator-Objekt importiert wird, andernfalls sollte es auf nullptr
gesetzt werden.
© 2025 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.