| 1 | // Copyright (C) 2020 Klaralvdalens Datakonsult AB (KDAB). |
| 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 QT3DRENDER_QRENDERCAPABILITIES_P_H |
| 5 | #define QT3DRENDER_QRENDERCAPABILITIES_P_H |
| 6 | |
| 7 | // |
| 8 | // W A R N I N G |
| 9 | // ------------- |
| 10 | // |
| 11 | // This file is not part of the Qt API. It exists for the convenience |
| 12 | // of other Qt classes. This header file may change from version to |
| 13 | // version without notice, or even be removed. |
| 14 | // |
| 15 | // We mean it. |
| 16 | // |
| 17 | |
| 18 | #include <QtCore/private/qobject_p.h> |
| 19 | #include <Qt3DRender/qrendercapabilities.h> |
| 20 | #include <Qt3DRender/private/qt3drender_global_p.h> |
| 21 | |
| 22 | QT_BEGIN_NAMESPACE |
| 23 | |
| 24 | namespace Qt3DRender { |
| 25 | |
| 26 | class Q_3DRENDERSHARED_PRIVATE_EXPORT QRenderCapabilitiesPrivate : public QObjectPrivate |
| 27 | { |
| 28 | public: |
| 29 | QRenderCapabilitiesPrivate(); |
| 30 | |
| 31 | Q_DECLARE_PUBLIC(QRenderCapabilities) |
| 32 | static const QRenderCapabilitiesPrivate *get(const QRenderCapabilities *q); |
| 33 | |
| 34 | bool m_valid; |
| 35 | QRenderCapabilities::API m_api = QRenderCapabilities::OpenGL; |
| 36 | QRenderCapabilities::Profile m_profile = QRenderCapabilities::NoProfile; |
| 37 | int m_majorVersion = 0; |
| 38 | int m_minorVersion = 0; |
| 39 | QStringList m_extensions; |
| 40 | QString m_vendor; |
| 41 | QString m_renderer; |
| 42 | QString m_version; |
| 43 | QString m_glslVersion; |
| 44 | int m_maxSamples = 0; |
| 45 | int m_maxTextureSize = 0; |
| 46 | int m_maxTextureUnits = 0; |
| 47 | int m_maxTextureLayers = 0; |
| 48 | bool m_supportsUBO = false; |
| 49 | int m_maxUBOSize = 0; |
| 50 | int m_maxUBOBindings = 0; |
| 51 | bool m_supportsSSBO = false; |
| 52 | int m_maxSSBOSize = 0; |
| 53 | int m_maxSSBOBindings = 0; |
| 54 | bool m_supportsImageStore = false; |
| 55 | int m_maxImageUnits = 0; |
| 56 | bool m_supportCompute = false; |
| 57 | int m_maxWorkGroupCount[3] = { 0, 0, 0 }; |
| 58 | int m_maxWorkGroupSize[3] = { 0, 0, 0 }; |
| 59 | int m_maxComputeInvocations = 0; |
| 60 | int m_maxComputeSharedMemorySize = 0; |
| 61 | |
| 62 | QString toString() const; |
| 63 | }; |
| 64 | |
| 65 | } // namespace Qt3Drender |
| 66 | |
| 67 | QT_END_NAMESPACE |
| 68 | |
| 69 | #endif // QT3DRENDER_QRENDERCAPABILITIES_P_H |
| 70 | |