From 035e6bd4071bbe9f986006695e5b0fff8eaedeef Mon Sep 17 00:00:00 2001 From: bunnei Date: Mon, 10 Sep 2018 00:36:13 -0400 Subject: gl_rasterizer: Implement clear for non-zero render targets. - Several misc. changes to ConfigureFramebuffers in support of this. --- src/video_core/renderer_opengl/gl_rasterizer.h | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'src/video_core/renderer_opengl/gl_rasterizer.h') diff --git a/src/video_core/renderer_opengl/gl_rasterizer.h b/src/video_core/renderer_opengl/gl_rasterizer.h index 3d62cc196..a39f9cdf6 100644 --- a/src/video_core/renderer_opengl/gl_rasterizer.h +++ b/src/video_core/renderer_opengl/gl_rasterizer.h @@ -13,6 +13,7 @@ #include #include +#include #include #include @@ -97,8 +98,16 @@ private: GLvec4 border_color; }; - /// Configures the color and depth framebuffer states - void ConfigureFramebuffers(bool using_depth_fb, bool preserve_contents); + /** + * Configures the color and depth framebuffer states. + * @param use_color_fb If true, configure color framebuffers. + * @param using_depth_fb If true, configure the depth/stencil framebuffer. + * @param preserve_contents If true, tries to preserve data from a previously used framebuffer. + * @param single_color_target Specifies if a single color buffer target should be used. + */ + void ConfigureFramebuffers(bool use_color_fb = true, bool using_depth_fb = true, + bool preserve_contents = true, + boost::optional single_color_target = {}); /* * Configures the current constbuffers to use for the draw command. -- cgit v1.2.3