Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
qwindowsopengltester.h
Go to the documentation of this file.
1// Copyright (C) 2016 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
4#ifndef QWINDOWSOPENGLTESTER_H
5#define QWINDOWSOPENGLTESTER_H
6
7#include <QtCore/qbytearray.h>
8#include <QtCore/qflags.h>
9#include <QtCore/qlist.h>
10#include <QtCore/qversionnumber.h>
11
13
14class QDebug;
15class QVariant;
16
18{
19 static GpuDescription detect();
21 QString toString() const;
22 QVariant toVariant() const;
23
32};
33
34#ifndef QT_NO_DEBUG_STREAM
36#endif
37
39{
40public:
41 enum Renderer {
43 DesktopGl = 0x0001,
45 RendererMask = 0x00FF,
48 };
49 Q_DECLARE_FLAGS(Renderers, Renderer)
50
52
53 static QWindowsOpenGLTester::Renderers supportedRenderers(Renderer requested);
54
55private:
56 static Renderers detectSupportedRenderers(const GpuDescription &gpu, Renderer requested);
57 static bool testDesktopGL();
58};
59
60Q_DECLARE_OPERATORS_FOR_FLAGS(QWindowsOpenGLTester::Renderers)
61
63
64#endif // QWINDOWSOPENGLTESTER_H
\inmodule QtCore
Definition qbytearray.h:57
\inmodule QtCore
Definition qlist.h:74
\macro QT_RESTRICTED_CAST_FROM_ASCII
Definition qstring.h:127
\inmodule QtCore
Definition qvariant.h:64
\inmodule QtCore
static Renderer requestedRenderer()
static QWindowsOpenGLTester::Renderers supportedRenderers(Renderer requested)
Combined button and popup list for selecting options.
#define Q_DECLARE_FLAGS(Flags, Enum)
Definition qflags.h:174
#define Q_DECLARE_OPERATORS_FOR_FLAGS(Flags)
Definition qflags.h:194
unsigned int uint
Definition qtypes.h:29
QDebug operator<<(QDebug d, const GpuDescription &gd)
QString toString() const
static GpuDescription detect()
static QList< GpuDescription > detectAll()
QVariant toVariant() const
QVersionNumber driverVersion