diff options
| author | bunnei <bunneidev@gmail.com> | 2018-09-10 00:36:13 -0400 |
|---|---|---|
| committer | bunnei <bunneidev@gmail.com> | 2018-09-10 00:41:20 -0400 |
| commit | 035e6bd4071bbe9f986006695e5b0fff8eaedeef (patch) | |
| tree | 9d13e4c9cd83ad646179f9c10d62bb7afa17f8e3 /src/video_core/renderer_opengl/gl_rasterizer.h | |
| parent | ac959799e43e5f6866cdc0a6f1acb48b134d2bd0 (diff) | |
gl_rasterizer: Implement clear for non-zero render targets.
- Several misc. changes to ConfigureFramebuffers in support of this.
Diffstat (limited to 'src/video_core/renderer_opengl/gl_rasterizer.h')
| -rw-r--r-- | src/video_core/renderer_opengl/gl_rasterizer.h | 13 |
1 files changed, 11 insertions, 2 deletions
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 <vector> #include <boost/icl/interval_map.hpp> +#include <boost/optional.hpp> #include <boost/range/iterator_range.hpp> #include <glad/glad.h> @@ -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<size_t> single_color_target = {}); /* * Configures the current constbuffers to use for the draw command. |
