diff options
author | ReinUsesLisp <reinuseslisp@airmail.cc> | 2019-05-31 22:33:21 +0200 |
---|---|---|
committer | ReinUsesLisp <reinuseslisp@airmail.cc> | 2019-06-08 00:47:15 +0200 |
commit | 2f2a61887a2830cf8a1d5c40302fa0c199c6e317 (patch) | |
tree | 17bb8b94a9f889d4163ae90b99600aea71a2738d /src/video_core/renderer_opengl/gl_rasterizer.h | |
parent | Merge pull request #2514 from ReinUsesLisp/opengl-compat (diff) | |
download | yuzu-2f2a61887a2830cf8a1d5c40302fa0c199c6e317.tar yuzu-2f2a61887a2830cf8a1d5c40302fa0c199c6e317.tar.gz yuzu-2f2a61887a2830cf8a1d5c40302fa0c199c6e317.tar.bz2 yuzu-2f2a61887a2830cf8a1d5c40302fa0c199c6e317.tar.lz yuzu-2f2a61887a2830cf8a1d5c40302fa0c199c6e317.tar.xz yuzu-2f2a61887a2830cf8a1d5c40302fa0c199c6e317.tar.zst yuzu-2f2a61887a2830cf8a1d5c40302fa0c199c6e317.zip |
Diffstat (limited to '')
-rw-r--r-- | src/video_core/renderer_opengl/gl_rasterizer.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/video_core/renderer_opengl/gl_rasterizer.h b/src/video_core/renderer_opengl/gl_rasterizer.h index 2817f65c9..dab08656f 100644 --- a/src/video_core/renderer_opengl/gl_rasterizer.h +++ b/src/video_core/renderer_opengl/gl_rasterizer.h @@ -17,6 +17,7 @@ #include <glad/glad.h> #include "common/common_types.h" +#include "video_core/engines/const_buffer_info.h" #include "video_core/engines/maxwell_3d.h" #include "video_core/rasterizer_cache.h" #include "video_core/rasterizer_interface.h" @@ -27,6 +28,7 @@ #include "video_core/renderer_opengl/gl_resource_manager.h" #include "video_core/renderer_opengl/gl_sampler_cache.h" #include "video_core/renderer_opengl/gl_shader_cache.h" +#include "video_core/renderer_opengl/gl_shader_decompiler.h" #include "video_core/renderer_opengl/gl_shader_manager.h" #include "video_core/renderer_opengl/gl_state.h" #include "video_core/renderer_opengl/utils.h" @@ -105,8 +107,12 @@ private: bool preserve_contents = true, std::optional<std::size_t> single_color_target = {}); /// Configures the current constbuffers to use for the draw command. - void SetupConstBuffers(Tegra::Engines::Maxwell3D::Regs::ShaderStage stage, const Shader& shader, - GLuint program_handle, BaseBindings base_bindings); + void SetupDrawConstBuffers(Tegra::Engines::Maxwell3D::Regs::ShaderStage stage, + const Shader& shader); + + /// Configures a constant buffer. + void SetupConstBuffer(const Tegra::Engines::ConstBufferInfo& buffer, + const GLShader::ConstBufferEntry& entry); /// Configures the current global memory entries to use for the draw command. void SetupGlobalRegions(Tegra::Engines::Maxwell3D::Regs::ShaderStage stage, |