diff options
author | bunnei <bunneidev@gmail.com> | 2019-06-18 04:35:04 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-06-18 04:35:04 +0200 |
commit | c7b5c245e1e6c8ec27e26cd767a34eeb8531580b (patch) | |
tree | b0139c242f5a609e73e253e5d717dc5149527bfb /src/video_core/renderer_opengl/gl_rasterizer.h | |
parent | Merge pull request #2538 from ReinUsesLisp/ssy-pbk (diff) | |
parent | gl_rasterizer: Remove unused parameters in descriptor uploads (diff) | |
download | yuzu-c7b5c245e1e6c8ec27e26cd767a34eeb8531580b.tar yuzu-c7b5c245e1e6c8ec27e26cd767a34eeb8531580b.tar.gz yuzu-c7b5c245e1e6c8ec27e26cd767a34eeb8531580b.tar.bz2 yuzu-c7b5c245e1e6c8ec27e26cd767a34eeb8531580b.tar.lz yuzu-c7b5c245e1e6c8ec27e26cd767a34eeb8531580b.tar.xz yuzu-c7b5c245e1e6c8ec27e26cd767a34eeb8531580b.tar.zst yuzu-c7b5c245e1e6c8ec27e26cd767a34eeb8531580b.zip |
Diffstat (limited to 'src/video_core/renderer_opengl/gl_rasterizer.h')
-rw-r--r-- | src/video_core/renderer_opengl/gl_rasterizer.h | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/src/video_core/renderer_opengl/gl_rasterizer.h b/src/video_core/renderer_opengl/gl_rasterizer.h index 2817f65c9..f7671ff5d 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,17 +107,20 @@ 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, - const Shader& shader, GLenum primitive_mode, - BaseBindings base_bindings); + const Shader& shader); /// Configures the current textures to use for the draw command. void SetupTextures(Tegra::Engines::Maxwell3D::Regs::ShaderStage stage, const Shader& shader, - GLuint program_handle, BaseBindings base_bindings); + BaseBindings base_bindings); /// Syncs the viewport and depth range to match the guest state void SyncViewport(OpenGLState& current_state); |