diff options
author | bunnei <bunneidev@gmail.com> | 2018-09-14 17:42:28 +0200 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2018-09-30 20:31:56 +0200 |
commit | fefb003b23ab4a7be28e7bb0e8a8fa9802b3cb1a (patch) | |
tree | 1277765e7c62289f3b48d68f4b619a62a3d05450 /src/video_core/renderer_opengl/gl_rasterizer_cache.h | |
parent | gl_rasterizer_cache: Keep track of surface 2D size separately from total size. (diff) | |
download | yuzu-fefb003b23ab4a7be28e7bb0e8a8fa9802b3cb1a.tar yuzu-fefb003b23ab4a7be28e7bb0e8a8fa9802b3cb1a.tar.gz yuzu-fefb003b23ab4a7be28e7bb0e8a8fa9802b3cb1a.tar.bz2 yuzu-fefb003b23ab4a7be28e7bb0e8a8fa9802b3cb1a.tar.lz yuzu-fefb003b23ab4a7be28e7bb0e8a8fa9802b3cb1a.tar.xz yuzu-fefb003b23ab4a7be28e7bb0e8a8fa9802b3cb1a.tar.zst yuzu-fefb003b23ab4a7be28e7bb0e8a8fa9802b3cb1a.zip |
Diffstat (limited to 'src/video_core/renderer_opengl/gl_rasterizer_cache.h')
-rw-r--r-- | src/video_core/renderer_opengl/gl_rasterizer_cache.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/video_core/renderer_opengl/gl_rasterizer_cache.h b/src/video_core/renderer_opengl/gl_rasterizer_cache.h index 9df909d01..6474d9129 100644 --- a/src/video_core/renderer_opengl/gl_rasterizer_cache.h +++ b/src/video_core/renderer_opengl/gl_rasterizer_cache.h @@ -15,6 +15,7 @@ #include "video_core/engines/maxwell_3d.h" #include "video_core/rasterizer_cache.h" #include "video_core/renderer_opengl/gl_resource_manager.h" +#include "video_core/renderer_opengl/gl_shader_gen.h" #include "video_core/textures/texture.h" namespace OpenGL { @@ -704,7 +705,8 @@ struct SurfaceParams { } /// Creates SurfaceParams from a texture configuration - static SurfaceParams CreateForTexture(const Tegra::Texture::FullTextureInfo& config); + static SurfaceParams CreateForTexture(const Tegra::Texture::FullTextureInfo& config, + const GLShader::SamplerEntry& entry); /// Creates SurfaceParams from a framebuffer configuration static SurfaceParams CreateForFramebuffer(std::size_t index); @@ -806,7 +808,8 @@ public: RasterizerCacheOpenGL(); /// Get a surface based on the texture configuration - Surface GetTextureSurface(const Tegra::Texture::FullTextureInfo& config); + Surface GetTextureSurface(const Tegra::Texture::FullTextureInfo& config, + const GLShader::SamplerEntry& entry); /// Get the depth surface based on the framebuffer configuration Surface GetDepthBufferSurface(bool preserve_contents); |