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
GpuDescription Struct Reference

#include <qwindowsopengltester.h>

+ Collaboration diagram for GpuDescription:

Public Member Functions

QString toString () const
 
QVariant toVariant () const
 

Static Public Member Functions

static GpuDescription detect ()
 
static QList< GpuDescriptiondetectAll ()
 

Public Attributes

uint vendorId = 0
 
uint deviceId = 0
 
uint revision = 0
 
uint subSysId = 0
 
QVersionNumber driverVersion
 
QByteArray driverName
 
QByteArray description
 
QString gpuSuitableScreen
 

Detailed Description

Definition at line 17 of file qwindowsopengltester.h.

Member Function Documentation

◆ detect()

GpuDescription GpuDescription::detect ( )
static

Definition at line 83 of file qwindowsopengltester.cpp.

References adapterIdentifierToGpuDescription(), QString::fromWCharArray(), and VENDOR_ID_AMD.

Referenced by QWindowsWindow::forcedScreenForGLWindow(), QWindowsApplication::gpu(), and QWindowsOpenGLTester::supportedRenderers().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ detectAll()

QList< GpuDescription > GpuDescription::detectAll ( )
static

Definition at line 131 of file qwindowsopengltester.cpp.

References adapterIdentifierToGpuDescription().

Referenced by QWindowsApplication::gpuList().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ toString()

QString GpuDescription::toString ( ) const

Definition at line 161 of file qwindowsopengltester.cpp.

References Qt::dec(), description, deviceId, driverName, driverVersion, gpuSuitableScreen, Qt::hex(), QString::isEmpty(), qSetFieldWidth(), qSetPadChar(), revision, str, subSysId, QVersionNumber::toString(), Qt::uppercasedigits(), and vendorId.

Referenced by toVariant().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ toVariant()

QVariant GpuDescription::toVariant ( ) const

Definition at line 179 of file qwindowsopengltester.cpp.

References description, deviceId, driverName, driverVersion, QMap< Key, T >::insert(), QStringLiteral, revision, QVersionNumber::segmentAt(), subSysId, QVersionNumber::toString(), toString(), and vendorId.

+ Here is the call graph for this function:

Member Data Documentation

◆ description

QByteArray GpuDescription::description

Definition at line 30 of file qwindowsopengltester.h.

Referenced by toString(), and toVariant().

◆ deviceId

uint GpuDescription::deviceId = 0

Definition at line 25 of file qwindowsopengltester.h.

Referenced by toString(), and toVariant().

◆ driverName

QByteArray GpuDescription::driverName

Definition at line 29 of file qwindowsopengltester.h.

Referenced by toString(), and toVariant().

◆ driverVersion

QVersionNumber GpuDescription::driverVersion

Definition at line 28 of file qwindowsopengltester.h.

Referenced by toString(), and toVariant().

◆ gpuSuitableScreen

QString GpuDescription::gpuSuitableScreen

Definition at line 31 of file qwindowsopengltester.h.

Referenced by toString().

◆ revision

uint GpuDescription::revision = 0

Definition at line 26 of file qwindowsopengltester.h.

Referenced by toString(), and toVariant().

◆ subSysId

uint GpuDescription::subSysId = 0

Definition at line 27 of file qwindowsopengltester.h.

Referenced by toString(), and toVariant().

◆ vendorId

uint GpuDescription::vendorId = 0

Definition at line 24 of file qwindowsopengltester.h.

Referenced by adapterIdentifierToGpuDescription(), toString(), and toVariant().


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