Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
QRhiDriverInfo Struct Reference

\inmodule QtGui More...

#include <qrhi.h>

+ Collaboration diagram for QRhiDriverInfo:

Public Types

enum  DeviceType {
  UnknownDevice , IntegratedDevice , DiscreteDevice , ExternalDevice ,
  VirtualDevice , CpuDevice
}
 Specifies the graphics device's type, when the information is available. More...
 

Public Attributes

QByteArray deviceName
 
quint64 deviceId = 0
 
quint64 vendorId = 0
 
DeviceType deviceType = UnknownDevice
 

Detailed Description

\inmodule QtGui

Since
6.6

Describes the physical device, adapter, or graphics API implementation that is used by an initialized QRhi.

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 always UnknownDevice for OpenGL and Direct 3D.

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

Definition at line 1758 of file qrhi.h.

Member Enumeration Documentation

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

\value UnknownDevice \value IntegratedDevice \value DiscreteDevice \value ExternalDevice \value VirtualDevice \value CpuDevice

Enumerator
UnknownDevice 
IntegratedDevice 
DiscreteDevice 
ExternalDevice 
VirtualDevice 
CpuDevice 

Definition at line 1760 of file qrhi.h.

Member Data Documentation

◆ deviceId

quint64 QRhiDriverInfo::deviceId = 0

Definition at line 1770 of file qrhi.h.

Referenced by QRhiVulkan::create().

◆ deviceName

◆ deviceType

DeviceType QRhiDriverInfo::deviceType = UnknownDevice

Definition at line 1772 of file qrhi.h.

Referenced by QRhiMetal::create(), and QRhiVulkan::create().

◆ vendorId

quint64 QRhiDriverInfo::vendorId = 0

Definition at line 1771 of file qrhi.h.

Referenced by QRhiVulkan::create().


The documentation for this struct was generated from the following file: