18#include <QtGui/private/qtguiglobal_p.h>
20#include <private/qopenglcontext_p.h>
21#include <QtCore/qset.h>
22#include <QtCore/qstring.h>
23#include <QtCore/qversionnumber.h>
48 struct Q_GUI_EXPORT
Gpu {
49 Gpu() : vendorId(0), deviceId(0) {}
50 bool isValid()
const {
return deviceId || !glVendor.isEmpty(); }
52 return vendorId ==
other.vendorId && deviceId ==
other.deviceId && driverVersion ==
other.driverVersion
53 && driverDescription ==
other.driverDescription && glVendor ==
other.glVendor;
77 static Gpu fromContext();
\inmodule QtCore\reentrant
bool match(const QByteArray &extension) const
QSet< QByteArray > extensions() const
\macro QT_RESTRICTED_CAST_FROM_ASCII
Combined button and popup list for selecting options.
bool operator!=(const QOpenGLConfig::Gpu &a, const QOpenGLConfig::Gpu &b)
bool operator==(const QOpenGLConfig::Gpu &a, const QOpenGLConfig::Gpu &b)
size_t qHash(const QOpenGLConfig::Gpu &gpu, size_t seed=0)
GLboolean GLboolean GLboolean b
GLboolean GLboolean GLboolean GLboolean a
[7]
static Q_CONSTINIT QBasicAtomicInteger< unsigned > seed
bool equals(const Gpu &other) const
static Gpu fromDevice(uint vendorId, uint deviceId, QVersionNumber driverVersion, const QByteArray &driverDescription)
QVersionNumber driverVersion
static Gpu fromGLVendor(const QByteArray &glVendor)
QByteArray driverDescription