summaryrefslogtreecommitdiffstats
path: root/src/video_core/renderer_opengl/gl_shader_cache.h
diff options
context:
space:
mode:
authorReinUsesLisp <reinuseslisp@airmail.cc>2019-01-05 05:01:38 +0100
committerReinUsesLisp <reinuseslisp@airmail.cc>2019-01-30 04:00:15 +0100
commit9f803299de3a9c512939ede48654fab838343a8a (patch)
tree4ba30f0ad404bd4120dd5b2e4f21193bf03952fd /src/video_core/renderer_opengl/gl_shader_cache.h
parentshader_decode: Implement LDG and basic cbuf tracking (diff)
downloadyuzu-9f803299de3a9c512939ede48654fab838343a8a.tar
yuzu-9f803299de3a9c512939ede48654fab838343a8a.tar.gz
yuzu-9f803299de3a9c512939ede48654fab838343a8a.tar.bz2
yuzu-9f803299de3a9c512939ede48654fab838343a8a.tar.lz
yuzu-9f803299de3a9c512939ede48654fab838343a8a.tar.xz
yuzu-9f803299de3a9c512939ede48654fab838343a8a.tar.zst
yuzu-9f803299de3a9c512939ede48654fab838343a8a.zip
Diffstat (limited to 'src/video_core/renderer_opengl/gl_shader_cache.h')
-rw-r--r--src/video_core/renderer_opengl/gl_shader_cache.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/video_core/renderer_opengl/gl_shader_cache.h b/src/video_core/renderer_opengl/gl_shader_cache.h
index e0887dd7b..62b1733b4 100644
--- a/src/video_core/renderer_opengl/gl_shader_cache.h
+++ b/src/video_core/renderer_opengl/gl_shader_cache.h
@@ -76,6 +76,9 @@ public:
/// Gets the GL program resource location for the specified resource, caching as needed
GLuint GetProgramResourceIndex(const GLShader::ConstBufferEntry& buffer);
+ /// Gets the GL program resource location for the specified resource, caching as needed
+ GLuint GetProgramResourceIndex(const GLShader::GlobalMemoryEntry& global_mem);
+
/// Gets the GL uniform location for the specified resource, caching as needed
GLint GetUniformLocation(const GLShader::SamplerEntry& sampler);
@@ -107,7 +110,8 @@ private:
OGLProgram triangles_adjacency;
} geometry_programs;
- std::map<u32, GLuint> resource_cache;
+ std::map<u32, GLuint> cbuf_resource_cache;
+ std::map<u32, GLuint> gmem_resource_cache;
std::map<u32, GLint> uniform_cache;
};