summaryrefslogtreecommitdiffstats
path: root/src/video_core/renderer_opengl/gl_shader_cache.h
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2018-11-11 17:20:27 +0100
committerGitHub <noreply@github.com>2018-11-11 17:20:27 +0100
commitc82bccab5600fe013580d264dfd0a1729de34201 (patch)
tree65dfb31af2c99f5157297e20faf2bff607e33d93 /src/video_core/renderer_opengl/gl_shader_cache.h
parentMerge pull request #1648 from FernandoS27/texs-3-array (diff)
parentrasterizer_cache: Remove reliance on the System singleton (diff)
downloadyuzu-c82bccab5600fe013580d264dfd0a1729de34201.tar
yuzu-c82bccab5600fe013580d264dfd0a1729de34201.tar.gz
yuzu-c82bccab5600fe013580d264dfd0a1729de34201.tar.bz2
yuzu-c82bccab5600fe013580d264dfd0a1729de34201.tar.lz
yuzu-c82bccab5600fe013580d264dfd0a1729de34201.tar.xz
yuzu-c82bccab5600fe013580d264dfd0a1729de34201.tar.zst
yuzu-c82bccab5600fe013580d264dfd0a1729de34201.zip
Diffstat (limited to 'src/video_core/renderer_opengl/gl_shader_cache.h')
-rw-r--r--src/video_core/renderer_opengl/gl_shader_cache.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/video_core/renderer_opengl/gl_shader_cache.h b/src/video_core/renderer_opengl/gl_shader_cache.h
index a210f1731..016ab18f9 100644
--- a/src/video_core/renderer_opengl/gl_shader_cache.h
+++ b/src/video_core/renderer_opengl/gl_shader_cache.h
@@ -16,6 +16,8 @@
namespace OpenGL {
class CachedShader;
+class RasterizerOpenGL;
+
using Shader = std::shared_ptr<CachedShader>;
using Maxwell = Tegra::Engines::Maxwell3D::Regs;
@@ -104,6 +106,8 @@ private:
class ShaderCacheOpenGL final : public RasterizerCache<Shader> {
public:
+ explicit ShaderCacheOpenGL(RasterizerOpenGL& rasterizer);
+
/// Gets the current specified shader stage program
Shader GetStageProgram(Maxwell::ShaderProgram program);
};