diff options
author | bunnei <bunneidev@gmail.com> | 2018-04-08 06:00:11 +0200 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2018-04-14 05:48:29 +0200 |
commit | beddc8afd208a71b1ec0f012103e3ac3e058c140 (patch) | |
tree | 09e1302fb1feac9a8ac2fafd15fb537b279b5873 /src/video_core/renderer_opengl/gl_rasterizer.h | |
parent | gl_shader_decompiler: Basic impl. for very simple vertex shaders. (diff) | |
download | yuzu-beddc8afd208a71b1ec0f012103e3ac3e058c140.tar yuzu-beddc8afd208a71b1ec0f012103e3ac3e058c140.tar.gz yuzu-beddc8afd208a71b1ec0f012103e3ac3e058c140.tar.bz2 yuzu-beddc8afd208a71b1ec0f012103e3ac3e058c140.tar.lz yuzu-beddc8afd208a71b1ec0f012103e3ac3e058c140.tar.xz yuzu-beddc8afd208a71b1ec0f012103e3ac3e058c140.tar.zst yuzu-beddc8afd208a71b1ec0f012103e3ac3e058c140.zip |
Diffstat (limited to '')
-rw-r--r-- | src/video_core/renderer_opengl/gl_rasterizer.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/video_core/renderer_opengl/gl_rasterizer.h b/src/video_core/renderer_opengl/gl_rasterizer.h index b508f5acc..32b897eb2 100644 --- a/src/video_core/renderer_opengl/gl_rasterizer.h +++ b/src/video_core/renderer_opengl/gl_rasterizer.h @@ -15,6 +15,7 @@ #include "common/common_types.h" #include "common/hash.h" #include "common/vector_math.h" +#include "video_core/engines/maxwell_3d.h" #include "video_core/rasterizer_interface.h" #include "video_core/renderer_opengl/gl_rasterizer_cache.h" #include "video_core/renderer_opengl/gl_resource_manager.h" @@ -141,11 +142,9 @@ private: void AnalyzeVertexArray(bool is_indexed); void SetupVertexArray(u8* array_ptr, GLintptr buffer_offset); - OGLBuffer vs_uniform_buffer; + std::array<OGLBuffer, Tegra::Engines::Maxwell3D::Regs::MaxShaderStage> uniform_buffers; - void SetupVertexShader(GLShader::VSUniformData* ub_ptr, GLintptr buffer_offset); - - void SetupFragmentShader(GLShader::FSUniformData* ub_ptr, GLintptr buffer_offset); + void SetupShaders(u8* buffer_ptr, GLintptr buffer_offset, size_t ptr_pos); enum class AccelDraw { Disabled, Arrays, Indexed }; AccelDraw accelerate_draw; |