diff options
author | Fernando Sahmkow <fsahmkow27@gmail.com> | 2019-09-05 22:03:46 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-09-05 22:03:46 +0200 |
commit | 4ee99496392b59a1de4dcb2868b9a15769e4da19 (patch) | |
tree | 1e313f424f818c2c31c85003a2c77c7ddd81cd2a /src/video_core/renderer_opengl/gl_shader_cache.h | |
parent | Merge pull request #2833 from ReinUsesLisp/fix-stencil (diff) | |
parent | gl_shader_cache: Remove special casing for geometry shaders (diff) | |
download | yuzu-4ee99496392b59a1de4dcb2868b9a15769e4da19.tar yuzu-4ee99496392b59a1de4dcb2868b9a15769e4da19.tar.gz yuzu-4ee99496392b59a1de4dcb2868b9a15769e4da19.tar.bz2 yuzu-4ee99496392b59a1de4dcb2868b9a15769e4da19.tar.lz yuzu-4ee99496392b59a1de4dcb2868b9a15769e4da19.tar.xz yuzu-4ee99496392b59a1de4dcb2868b9a15769e4da19.tar.zst yuzu-4ee99496392b59a1de4dcb2868b9a15769e4da19.zip |
Diffstat (limited to 'src/video_core/renderer_opengl/gl_shader_cache.h')
-rw-r--r-- | src/video_core/renderer_opengl/gl_shader_cache.h | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/src/video_core/renderer_opengl/gl_shader_cache.h b/src/video_core/renderer_opengl/gl_shader_cache.h index 2c8faf855..de195cc5d 100644 --- a/src/video_core/renderer_opengl/gl_shader_cache.h +++ b/src/video_core/renderer_opengl/gl_shader_cache.h @@ -86,22 +86,6 @@ private: explicit CachedShader(const ShaderParameters& params, ProgramType program_type, GLShader::ProgramResult result); - // Geometry programs. These are needed because GLSL needs an input topology but it's not - // declared by the hardware. Workaround this issue by generating a different shader per input - // topology class. - struct GeometryPrograms { - CachedProgram points; - CachedProgram lines; - CachedProgram lines_adjacency; - CachedProgram triangles; - CachedProgram triangles_adjacency; - }; - - GLuint GetGeometryShader(const ProgramVariant& variant); - - /// Generates a geometry shader or returns one that already exists. - GLuint LazyGeometryProgram(CachedProgram& target_program, const ProgramVariant& variant); - CachedProgram TryLoadProgram(const ProgramVariant& variant) const; ShaderDiskCacheUsage GetUsage(const ProgramVariant& variant) const; @@ -117,11 +101,6 @@ private: std::size_t shader_length{}; std::unordered_map<ProgramVariant, CachedProgram> programs; - std::unordered_map<ProgramVariant, GeometryPrograms> geometry_programs; - - std::unordered_map<u32, GLuint> cbuf_resource_cache; - std::unordered_map<u32, GLuint> gmem_resource_cache; - std::unordered_map<u32, GLint> uniform_cache; }; class ShaderCacheOpenGL final : public RasterizerCache<Shader> { |