diff options
author | Markus Wick <markus@selfnet.de> | 2018-08-10 09:30:35 +0200 |
---|---|---|
committer | Markus Wick <markus@selfnet.de> | 2018-08-12 15:47:35 +0200 |
commit | 6f6bba3ff16641f92fbc70b31e41be80d4a3c5c8 (patch) | |
tree | bc4fb622062c9447ec12cd29b49887d3c1960195 /src/video_core/renderer_opengl/gl_rasterizer.h | |
parent | Update the stream_buffer helper from Citra. (diff) | |
download | yuzu-6f6bba3ff16641f92fbc70b31e41be80d4a3c5c8.tar yuzu-6f6bba3ff16641f92fbc70b31e41be80d4a3c5c8.tar.gz yuzu-6f6bba3ff16641f92fbc70b31e41be80d4a3c5c8.tar.bz2 yuzu-6f6bba3ff16641f92fbc70b31e41be80d4a3c5c8.tar.lz yuzu-6f6bba3ff16641f92fbc70b31e41be80d4a3c5c8.tar.xz yuzu-6f6bba3ff16641f92fbc70b31e41be80d4a3c5c8.tar.zst yuzu-6f6bba3ff16641f92fbc70b31e41be80d4a3c5c8.zip |
Diffstat (limited to '')
-rw-r--r-- | src/video_core/renderer_opengl/gl_rasterizer.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/video_core/renderer_opengl/gl_rasterizer.h b/src/video_core/renderer_opengl/gl_rasterizer.h index 19146777c..d9d4e04b9 100644 --- a/src/video_core/renderer_opengl/gl_rasterizer.h +++ b/src/video_core/renderer_opengl/gl_rasterizer.h @@ -169,7 +169,9 @@ private: std::array<OGLBuffer, Tegra::Engines::Maxwell3D::Regs::MaxShaderStage> uniform_buffers; - void SetupShaders(u8* buffer_ptr, GLintptr buffer_offset); + std::pair<u8*, GLintptr> SetupShaders(u8* buffer_ptr, GLintptr buffer_offset); + + std::pair<u8*, GLintptr> AlignBuffer(u8* buffer_ptr, GLintptr buffer_offset, size_t alignment); enum class AccelDraw { Disabled, Arrays, Indexed }; AccelDraw accelerate_draw = AccelDraw::Disabled; |