Qt 6.x
The Qt SDK
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 QDirect3D9Handle::adapterCount(), adapterIdentifierToGpuDescription(), QString::fromWCharArray(), QDirect3D9Handle::isValid(), QDirect3D9Handle::retrieveAdapterIdentifier(), 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 QDirect3D9Handle::adapterCount(), adapterIdentifierToGpuDescription(), and QDirect3D9Handle::retrieveAdapterIdentifier().

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, QStringLiteral, revision, QVersionNumber::segmentAt(), subSysId, QVersionNumber::toString(), toString(), and vendorId.

Referenced by QWindowsApplication::gpu().

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

Member Data Documentation

◆ description

QByteArray GpuDescription::description

Definition at line 30 of file qwindowsopengltester.h.

Referenced by operator<<(), toString(), and toVariant().

◆ deviceId

uint GpuDescription::deviceId = 0

Definition at line 25 of file qwindowsopengltester.h.

Referenced by operator<<(), toString(), and toVariant().

◆ driverName

QByteArray GpuDescription::driverName

Definition at line 29 of file qwindowsopengltester.h.

Referenced by operator<<(), toString(), and toVariant().

◆ driverVersion

QVersionNumber GpuDescription::driverVersion

Definition at line 28 of file qwindowsopengltester.h.

Referenced by operator<<(), toString(), and toVariant().

◆ gpuSuitableScreen

QString GpuDescription::gpuSuitableScreen

◆ revision

uint GpuDescription::revision = 0

Definition at line 26 of file qwindowsopengltester.h.

Referenced by operator<<(), toString(), and toVariant().

◆ subSysId

uint GpuDescription::subSysId = 0

Definition at line 27 of file qwindowsopengltester.h.

Referenced by operator<<(), toString(), and toVariant().

◆ vendorId

uint GpuDescription::vendorId = 0

Definition at line 24 of file qwindowsopengltester.h.

Referenced by operator<<(), toString(), and toVariant().


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