diff options
author | Subv <subv2112@gmail.com> | 2018-07-03 23:55:44 +0200 |
---|---|---|
committer | Subv <subv2112@gmail.com> | 2018-07-03 23:56:47 +0200 |
commit | 78443a7f2929dece8d2509d50642df9478aeb166 (patch) | |
tree | a03e4f409d85e2cc0f91dede1d178226f946793b /src/video_core/renderer_opengl/gl_rasterizer.h | |
parent | GPU: Support clears that don't clear the color buffer. (diff) | |
download | yuzu-78443a7f2929dece8d2509d50642df9478aeb166.tar yuzu-78443a7f2929dece8d2509d50642df9478aeb166.tar.gz yuzu-78443a7f2929dece8d2509d50642df9478aeb166.tar.bz2 yuzu-78443a7f2929dece8d2509d50642df9478aeb166.tar.lz yuzu-78443a7f2929dece8d2509d50642df9478aeb166.tar.xz yuzu-78443a7f2929dece8d2509d50642df9478aeb166.tar.zst yuzu-78443a7f2929dece8d2509d50642df9478aeb166.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 0b1e139b0..7738f40b1 100644 --- a/src/video_core/renderer_opengl/gl_rasterizer.h +++ b/src/video_core/renderer_opengl/gl_rasterizer.h @@ -7,6 +7,7 @@ #include <array> #include <cstddef> #include <memory> +#include <utility> #include <vector> #include <glad/glad.h> #include "common/common_types.h" @@ -82,6 +83,10 @@ private: u32 border_color_a; }; + /// Configures the color and depth framebuffer states and returns the dirty <Color, Depth> + /// surfaces if writing was enabled. + std::pair<Surface, Surface> ConfigureFramebuffers(); + /// Binds the framebuffer color and depth surface void BindFramebufferSurfaces(const Surface& color_surface, const Surface& depth_surface, bool has_stencil); |