diff options
author | bunnei <bunneidev@gmail.com> | 2018-09-10 06:36:13 +0200 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2018-09-10 06:41:20 +0200 |
commit | 035e6bd4071bbe9f986006695e5b0fff8eaedeef (patch) | |
tree | 9d13e4c9cd83ad646179f9c10d62bb7afa17f8e3 /src/video_core/renderer_opengl/gl_rasterizer.h | |
parent | Merge pull request #1281 from bunnei/multi-rt (diff) | |
download | yuzu-035e6bd4071bbe9f986006695e5b0fff8eaedeef.tar yuzu-035e6bd4071bbe9f986006695e5b0fff8eaedeef.tar.gz yuzu-035e6bd4071bbe9f986006695e5b0fff8eaedeef.tar.bz2 yuzu-035e6bd4071bbe9f986006695e5b0fff8eaedeef.tar.lz yuzu-035e6bd4071bbe9f986006695e5b0fff8eaedeef.tar.xz yuzu-035e6bd4071bbe9f986006695e5b0fff8eaedeef.tar.zst yuzu-035e6bd4071bbe9f986006695e5b0fff8eaedeef.zip |
Diffstat (limited to '')
-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. |