diff options
author | ReinUsesLisp <reinuseslisp@airmail.cc> | 2019-07-12 01:09:53 +0200 |
---|---|---|
committer | ReinUsesLisp <reinuseslisp@airmail.cc> | 2019-09-06 01:35:51 +0200 |
commit | 2e5b5c2358caaf8dfd403a30924d49c31aa962a0 (patch) | |
tree | bdd4acfce25ee3b409035621af36ca776d9874a8 /src/video_core/renderer_opengl/gl_rasterizer.h | |
parent | Merge pull request #2804 from ReinUsesLisp/remove-gs-special (diff) | |
download | yuzu-2e5b5c2358caaf8dfd403a30924d49c31aa962a0.tar yuzu-2e5b5c2358caaf8dfd403a30924d49c31aa962a0.tar.gz yuzu-2e5b5c2358caaf8dfd403a30924d49c31aa962a0.tar.bz2 yuzu-2e5b5c2358caaf8dfd403a30924d49c31aa962a0.tar.lz yuzu-2e5b5c2358caaf8dfd403a30924d49c31aa962a0.tar.xz yuzu-2e5b5c2358caaf8dfd403a30924d49c31aa962a0.tar.zst yuzu-2e5b5c2358caaf8dfd403a30924d49c31aa962a0.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 9d20a4fbf..23ab7aff0 100644 --- a/src/video_core/renderer_opengl/gl_rasterizer.h +++ b/src/video_core/renderer_opengl/gl_rasterizer.h @@ -32,6 +32,7 @@ #include "video_core/renderer_opengl/gl_state.h" #include "video_core/renderer_opengl/gl_texture_cache.h" #include "video_core/renderer_opengl/utils.h" +#include "video_core/textures/texture.h" namespace Core { class System; @@ -137,8 +138,13 @@ private: /// Configures the current textures to use for the draw command. Returns shaders texture buffer /// usage. - TextureBufferUsage SetupTextures(Tegra::Engines::Maxwell3D::Regs::ShaderStage stage, - const Shader& shader, BaseBindings base_bindings); + TextureBufferUsage SetupDrawTextures(Tegra::Engines::Maxwell3D::Regs::ShaderStage stage, + const Shader& shader, BaseBindings base_bindings); + + /// Configures a texture. Returns true when the texture is a texture buffer. + bool SetupTexture(const Shader& shader, u32 binding, + const Tegra::Texture::FullTextureInfo& texture, + const GLShader::SamplerEntry& entry); /// Syncs the viewport and depth range to match the guest state void SyncViewport(OpenGLState& current_state); |