PySide6.QtGui.QRhiAdapter

class QRhiAdapter

Represents a physical graphics device.

Details

Some 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.

Note

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.

Note

This is a RHI API with limited compatibility guarantees, see QRhi for details.

Added in version 6.10.

Synopsis

Virtual methods

Note

This documentation may contain snippets that were automatically translated from C++ to Python. We always welcome contributions to the snippet translation. If you see an issue with the translation, you can also let us know by creating a ticket on https:/bugreports.qt.io/projects/PYSIDE

abstract info()
Return type:

QRhiDriverInfo

Returns the corresponding QRhiDriverInfo .