Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qopenglshadercache_p.h
Go to the documentation of this file.
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// Qt-Security score:significant reason:default
15
16#ifndef QOPENGLSHADERCACHE_P_H
17#define QOPENGLSHADERCACHE_P_H
18
19#include <QtOpenGL/qtopenglglobal.h>
20#include <QtCore/private/qglobal_p.h>
21
22QT_BEGIN_NAMESPACE
23
24
25class QOpenGLShaderProgram;
26class QOpenGLContext;
27
29{
30public:
31 inline CachedShader(const QByteArray &, const QByteArray &)
32 {}
33
34 inline bool isCached()
35 {
36 return false;
37 }
38
39 inline bool load(QOpenGLShaderProgram *, QOpenGLContext *)
40 {
41 return false;
42 }
43
44 inline bool store(QOpenGLShaderProgram *, QOpenGLContext *)
45 {
46 return false;
47 }
48};
49
50QT_END_NAMESPACE
51
52#endif
bool store(QOpenGLShaderProgram *, QOpenGLContext *)
bool load(QOpenGLShaderProgram *, QOpenGLContext *)
CachedShader(const QByteArray &, const QByteArray &)