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
21QT_BEGIN_NAMESPACE
22
23
24class QOpenGLShaderProgram;
25class QOpenGLContext;
26
27class CachedShader
28{
29public:
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
49QT_END_NAMESPACE
50
51#endif
52

source code of qtbase/src/opengl/qopenglshadercache_p.h