diff options
author | Fernando Sahmkow <fsahmkow27@gmail.com> | 2019-07-14 14:14:27 +0200 |
---|---|---|
committer | FernandoS27 <fsahmkow27@gmail.com> | 2019-07-17 23:29:52 +0200 |
commit | fec32fed18bd4210f00150018a05ab010091e573 (patch) | |
tree | 81250a6801d23e54f1681e8881cabebbd1e9f01d /src/video_core/renderer_opengl/gl_rasterizer.h | |
parent | Maxwell3D: Implement State Dirty Flags. (diff) | |
download | yuzu-fec32fed18bd4210f00150018a05ab010091e573.tar yuzu-fec32fed18bd4210f00150018a05ab010091e573.tar.gz yuzu-fec32fed18bd4210f00150018a05ab010091e573.tar.bz2 yuzu-fec32fed18bd4210f00150018a05ab010091e573.tar.lz yuzu-fec32fed18bd4210f00150018a05ab010091e573.tar.xz yuzu-fec32fed18bd4210f00150018a05ab010091e573.tar.zst yuzu-fec32fed18bd4210f00150018a05ab010091e573.zip |
Diffstat (limited to '')
-rw-r--r-- | src/video_core/renderer_opengl/gl_rasterizer.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/video_core/renderer_opengl/gl_rasterizer.h b/src/video_core/renderer_opengl/gl_rasterizer.h index 1f6ce4b81..ef34d3f54 100644 --- a/src/video_core/renderer_opengl/gl_rasterizer.h +++ b/src/video_core/renderer_opengl/gl_rasterizer.h @@ -108,6 +108,9 @@ private: OpenGLState& current_state, bool using_color_fb = true, bool using_depth_fb = true, bool preserve_contents = true, std::optional<std::size_t> single_color_target = {}); + void ConfigureClearFramebuffer(OpenGLState& current_state, bool using_color_fb, + bool using_depth_fb, bool using_stencil_fb); + /// Configures the current constbuffers to use for the draw command. void SetupDrawConstBuffers(Tegra::Engines::Maxwell3D::Regs::ShaderStage stage, const Shader& shader); @@ -227,6 +230,8 @@ private: enum class AccelDraw { Disabled, Arrays, Indexed }; AccelDraw accelerate_draw = AccelDraw::Disabled; + OGLFramebuffer clear_framebuffer; + using CachedPageMap = boost::icl::interval_map<u64, int>; CachedPageMap cached_pages; }; |