diff options
author | bunnei <bunneidev@gmail.com> | 2018-09-06 04:50:52 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-09-06 04:50:52 +0200 |
commit | 77554ac773956e01ba1c9c779f1a2c4f4bde3324 (patch) | |
tree | 5ac8237ce6a00847c91e50ccb06700f1ec4cee78 /src/video_core/renderer_opengl/gl_rasterizer.h | |
parent | Merge pull request #1244 from FernandoS27/ipa (diff) | |
parent | gl_rasterizer: Implement a VAO cache. (diff) | |
download | yuzu-77554ac773956e01ba1c9c779f1a2c4f4bde3324.tar yuzu-77554ac773956e01ba1c9c779f1a2c4f4bde3324.tar.gz yuzu-77554ac773956e01ba1c9c779f1a2c4f4bde3324.tar.bz2 yuzu-77554ac773956e01ba1c9c779f1a2c4f4bde3324.tar.lz yuzu-77554ac773956e01ba1c9c779f1a2c4f4bde3324.tar.xz yuzu-77554ac773956e01ba1c9c779f1a2c4f4bde3324.tar.zst yuzu-77554ac773956e01ba1c9c779f1a2c4f4bde3324.zip |
Diffstat (limited to 'src/video_core/renderer_opengl/gl_rasterizer.h')
-rw-r--r-- | src/video_core/renderer_opengl/gl_rasterizer.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/video_core/renderer_opengl/gl_rasterizer.h b/src/video_core/renderer_opengl/gl_rasterizer.h index 4c4b084b8..9c30dc0e8 100644 --- a/src/video_core/renderer_opengl/gl_rasterizer.h +++ b/src/video_core/renderer_opengl/gl_rasterizer.h @@ -6,6 +6,7 @@ #include <array> #include <cstddef> +#include <map> #include <memory> #include <tuple> #include <utility> @@ -168,14 +169,15 @@ private: ScreenInfo& screen_info; std::unique_ptr<GLShader::ProgramManager> shader_program_manager; - OGLVertexArray sw_vao; - OGLVertexArray hw_vao; + std::map<std::array<Tegra::Engines::Maxwell3D::Regs::VertexAttribute, + Tegra::Engines::Maxwell3D::Regs::NumVertexAttributes>, + OGLVertexArray> + vertex_array_cache; std::array<SamplerInfo, GLShader::NumTextureSamplers> texture_samplers; static constexpr size_t STREAM_BUFFER_SIZE = 128 * 1024 * 1024; OGLBufferCache buffer_cache; - OGLBuffer uniform_buffer; OGLFramebuffer framebuffer; GLint uniform_buffer_alignment; |