QRhiAdapter Class

Represents a physical graphics device. 更多...

頭: #include <rhi/qrhi.h>
CMake: find_package(Qt6 REQUIRED COMPONENTS GuiPrivate)
target_link_libraries(mytarget PRIVATE Qt6::GuiPrivate)
qmake: QT += gui-private
Since: Qt 6.10

公共函數

virtual QRhiDriverInfo info () const = 0

詳細描述

某些 QRhi backends target graphics APIs that expose the concept of adapters or physical devices . Call the static enumerateAdapters () function to retrieve a list of the adapters present in the system. Pass one of the returned QRhiAdapter objects to create () in order to request using the adapter or physical device the QRhiAdapter corresponds to. Other than exposing the QRhiDriverInfo , QRhiAdapter is to be treated as an opaque handle.

注意: With Vulkan, the QRhiAdapter is valid only as long as the QVulkanInstance that was used for enumerateAdapters () is valid. This also means that a QRhiAdapter is tied to the Vulkan instance ( QVulkanInstance , VkInstance ) and cannot be used in the context of another Vulkan instance.

注意: This is a RHI API with limited compatibility guarantees, see QRhi 瞭解細節。

成員函數文檔編製

[pure virtual] QRhiDriverInfo QRhiAdapter:: info () const

Returns the corresponding QRhiDriverInfo .