PySide6.QtGui.QRhiAdapter¶
- class QRhiAdapter¶
Represents a physical graphics device.
Details
Some
QRhibackends target graphics APIs that expose the concept ofadaptersorphysical devices. Call the staticenumerateAdapters()function to retrieve a list of the adapters present in the system. Pass one of the returnedQRhiAdapterobjects tocreate()in order to request using the adapter or physical device theQRhiAdaptercorresponds to. Other than exposing theQRhiDriverInfo,QRhiAdapteris to be treated as an opaque handle.Note
With Vulkan, the
QRhiAdapteris valid only as long as theQVulkanInstancethat was used forenumerateAdapters()is valid. This also means that aQRhiAdapteris 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
QRhifor details.Added in version 6.10.
Synopsis¶
Virtual methods¶
def
info()
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:
Returns the corresponding
QRhiDriverInfo.