diff options
author | ReinUsesLisp <reinuseslisp@airmail.cc> | 2018-10-02 19:47:26 +0200 |
---|---|---|
committer | ReinUsesLisp <reinuseslisp@airmail.cc> | 2018-10-04 05:03:44 +0200 |
commit | 3e2380327a99196ac2bb18668f6f53c4248bcca1 (patch) | |
tree | f0e330bb43f9611c5319d7d51c27c5d2fb2ebc5b /src/video_core/renderer_opengl/gl_rasterizer.h | |
parent | Merge pull request #1422 from ReinUsesLisp/fixup-points (diff) | |
download | yuzu-3e2380327a99196ac2bb18668f6f53c4248bcca1.tar yuzu-3e2380327a99196ac2bb18668f6f53c4248bcca1.tar.gz yuzu-3e2380327a99196ac2bb18668f6f53c4248bcca1.tar.bz2 yuzu-3e2380327a99196ac2bb18668f6f53c4248bcca1.tar.lz yuzu-3e2380327a99196ac2bb18668f6f53c4248bcca1.tar.xz yuzu-3e2380327a99196ac2bb18668f6f53c4248bcca1.tar.zst yuzu-3e2380327a99196ac2bb18668f6f53c4248bcca1.zip |
Diffstat (limited to '')
-rw-r--r-- | src/video_core/renderer_opengl/gl_rasterizer.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/video_core/renderer_opengl/gl_rasterizer.h b/src/video_core/renderer_opengl/gl_rasterizer.h index 4c8ecbd1c..bf954bb5d 100644 --- a/src/video_core/renderer_opengl/gl_rasterizer.h +++ b/src/video_core/renderer_opengl/gl_rasterizer.h @@ -23,6 +23,7 @@ #include "video_core/rasterizer_cache.h" #include "video_core/rasterizer_interface.h" #include "video_core/renderer_opengl/gl_buffer_cache.h" +#include "video_core/renderer_opengl/gl_primitive_assembler.h" #include "video_core/renderer_opengl/gl_rasterizer_cache.h" #include "video_core/renderer_opengl/gl_resource_manager.h" #include "video_core/renderer_opengl/gl_shader_cache.h" @@ -38,6 +39,7 @@ class EmuWindow; namespace OpenGL { struct ScreenInfo; +struct DrawParameters; class RasterizerOpenGL : public VideoCore::RasterizerInterface { public: @@ -192,12 +194,17 @@ private: static constexpr std::size_t STREAM_BUFFER_SIZE = 128 * 1024 * 1024; OGLBufferCache buffer_cache; OGLFramebuffer framebuffer; + PrimitiveAssembler primitive_assembler{buffer_cache}; GLint uniform_buffer_alignment; std::size_t CalculateVertexArraysSize() const; + std::size_t CalculateIndexBufferSize() const; + void SetupVertexArrays(); + DrawParameters SetupDraw(); + void SetupShaders(); enum class AccelDraw { Disabled, Arrays, Indexed }; |