1 | // Copyright (C) 2019 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 | // |
5 | // W A R N I N G |
6 | // ------------- |
7 | // |
8 | // This file is not part of the Qt API. It exists purely as an |
9 | // implementation detail. This header file may change from version to |
10 | // version without notice, or even be removed. |
11 | // |
12 | // We mean it. |
13 | // |
14 | |
15 | #ifndef QOPENGLSHADERCACHE_P_H |
16 | #define QOPENGLSHADERCACHE_P_H |
17 | |
18 | #include <QtOpenGL/qtopenglglobal.h> |
19 | #include <QtCore/private/qglobal_p.h> |
20 | |
21 | QT_BEGIN_NAMESPACE |
22 | |
23 | |
24 | class QOpenGLShaderProgram; |
25 | class QOpenGLContext; |
26 | |
27 | class CachedShader |
28 | { |
29 | public: |
30 | inline CachedShader(const QByteArray &, const QByteArray &) |
31 | {} |
32 | |
33 | inline bool isCached() |
34 | { |
35 | return false; |
36 | } |
37 | |
38 | inline bool load(QOpenGLShaderProgram *, QOpenGLContext *) |
39 | { |
40 | return false; |
41 | } |
42 | |
43 | inline bool store(QOpenGLShaderProgram *, QOpenGLContext *) |
44 | { |
45 | return false; |
46 | } |
47 | }; |
48 | |
49 | QT_END_NAMESPACE |
50 | |
51 | #endif |
52 | |