summaryrefslogtreecommitdiffstats
path: root/src/gui/opengl/qopenglprogrambinarycache_p.h
diff options
context:
space:
mode:
authorLaszlo Agocs <laszlo.agocs@qt.io>2019-09-26 11:26:51 +0200
committerLaszlo Agocs <laszlo.agocs@qt.io>2019-09-26 17:02:39 +0200
commit0628932fef349d217c0a50a192e7ee6a955994b7 (patch)
tree63645ca4ffa1598b03f9d79b152424ef88dd32bb /src/gui/opengl/qopenglprogrambinarycache_p.h
parentc06627a230ea758c64ac70a9962a69c843fd0e08 (diff)
Move cache key calculation to QOpenGLProgramBinaryCache
This class will likely be used by the OpenGL backend of QRhi as well. Therefore, we need to make it more self-contained and independent. Change-Id: If046ed41e25c70cc9abb45219b451f9179feaa1c Reviewed-by: Christian Strømme <christian.stromme@qt.io>
Diffstat (limited to 'src/gui/opengl/qopenglprogrambinarycache_p.h')
-rw-r--r--src/gui/opengl/qopenglprogrambinarycache_p.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gui/opengl/qopenglprogrambinarycache_p.h b/src/gui/opengl/qopenglprogrambinarycache_p.h
index e181a6ab81..fb01e61872 100644
--- a/src/gui/opengl/qopenglprogrambinarycache_p.h
+++ b/src/gui/opengl/qopenglprogrambinarycache_p.h
@@ -71,6 +71,7 @@ public:
};
struct ProgramDesc {
QVector<ShaderDesc> shaders;
+ QByteArray cacheKey() const;
};
QOpenGLProgramBinaryCache();