diff options
author | ReinUsesLisp <reinuseslisp@airmail.cc> | 2019-01-05 05:01:38 +0100 |
---|---|---|
committer | ReinUsesLisp <reinuseslisp@airmail.cc> | 2019-01-30 04:00:15 +0100 |
commit | 9f803299de3a9c512939ede48654fab838343a8a (patch) | |
tree | 4ba30f0ad404bd4120dd5b2e4f21193bf03952fd /src/video_core/renderer_opengl/gl_shader_cache.h | |
parent | shader_decode: Implement LDG and basic cbuf tracking (diff) | |
download | yuzu-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 '')
-rw-r--r-- | src/video_core/renderer_opengl/gl_shader_cache.h | 6 |
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; }; |