PySide6.QtGui.QRhiDriverInfo¶
- class QRhiDriverInfo¶
Describes the physical device, adapter, or graphics API implementation that is used by an initialized
QRhi.Details
Graphics APIs offer different levels and kinds of information. The only value that is available across all APIs is the deviceName , which is a freetext description of the physical device, adapter, or is a combination of the strings reported for
GL_VENDOR+GL_RENDERER+GL_VERSION. The deviceId is always 0 for OpenGL. vendorId is always 0 for OpenGL and Metal. deviceType is alwaysUnknownDevicefor OpenGL and Direct 3D.Note
This is a RHI API with limited compatibility guarantees, see
QRhifor details.Added in version 6.6.
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
- class DeviceType¶
Specifies the graphics device’s type, when the information is available.
In practice this is only applicable with Vulkan and Metal. With Direct 3D 11 and 12, using an adapter with the software flag set leads to the value
CpuDevice. Otherwise, and with OpenGL, the value is always UnknownDevice.Constant
Description
QRhiDriverInfo.DeviceType.UnknownDevice
QRhiDriverInfo.DeviceType.IntegratedDevice
QRhiDriverInfo.DeviceType.DiscreteDevice
QRhiDriverInfo.DeviceType.ExternalDevice
QRhiDriverInfo.DeviceType.VirtualDevice
QRhiDriverInfo.DeviceType.CpuDevice
- PySide6.QtGui.QRhiDriverInfo.deviceName¶
- PySide6.QtGui.QRhiDriverInfo.deviceId¶
- PySide6.QtGui.QRhiDriverInfo.vendorId¶
- PySide6.QtGui.QRhiDriverInfo.deviceType¶