diff options
Diffstat (limited to 'src/gui/opengl/qopengl_p.h')
-rw-r--r-- | src/gui/opengl/qopengl_p.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/src/gui/opengl/qopengl_p.h b/src/gui/opengl/qopengl_p.h index a82195757d..377440455a 100644 --- a/src/gui/opengl/qopengl_p.h +++ b/src/gui/opengl/qopengl_p.h @@ -48,9 +48,13 @@ #include <qopengl.h> #include <private/qopenglcontext_p.h> #include <QtCore/qset.h> +#include <QtCore/qstring.h> +#include <private/qversionnumber_p.h> QT_BEGIN_NAMESPACE +class QJsonDocument; + class Q_GUI_EXPORT QOpenGLExtensionMatcher { public: @@ -67,6 +71,28 @@ private: QSet<QByteArray> m_extensions; }; +class Q_GUI_EXPORT QOpenGLConfig +{ +public: + struct Gpu { + Gpu() : vendorId(0), deviceId(0) {} + bool isValid() const { return deviceId; } + + uint vendorId; + uint deviceId; + QVersionNumber driverVersion; + }; + + static QSet<QString> gpuFeatures(const Gpu &gpu, + const QString &osName, const QVersionNumber &kernelVersion, + const QJsonDocument &doc); + static QSet<QString> gpuFeatures(const Gpu &gpu, + const QString &osName, const QVersionNumber &kernelVersion, + const QString &fileName); + static QSet<QString> gpuFeatures(const Gpu &gpu, const QJsonDocument &doc); + static QSet<QString> gpuFeatures(const Gpu &gpu, const QString &fileName); +}; + QT_END_NAMESPACE #endif // QOPENGL_H |