summaryrefslogtreecommitdiffstats
path: root/src/video_core/renderer_opengl/gl_rasterizer.h
diff options
context:
space:
mode:
authorReinUsesLisp <reinuseslisp@airmail.cc>2019-01-29 06:01:05 +0100
committerReinUsesLisp <reinuseslisp@airmail.cc>2019-01-30 03:47:33 +0100
commit07692230caf23f9484c89d47fa58e6f94c4cfa90 (patch)
treedefc4922aef52ab99f2966f4cac34f66b628f0a3 /src/video_core/renderer_opengl/gl_rasterizer.h
parenthle/ipc_helpers: Fix clang-format warnings (diff)
downloadyuzu-07692230caf23f9484c89d47fa58e6f94c4cfa90.tar
yuzu-07692230caf23f9484c89d47fa58e6f94c4cfa90.tar.gz
yuzu-07692230caf23f9484c89d47fa58e6f94c4cfa90.tar.bz2
yuzu-07692230caf23f9484c89d47fa58e6f94c4cfa90.tar.lz
yuzu-07692230caf23f9484c89d47fa58e6f94c4cfa90.tar.xz
yuzu-07692230caf23f9484c89d47fa58e6f94c4cfa90.tar.zst
yuzu-07692230caf23f9484c89d47fa58e6f94c4cfa90.zip
Diffstat (limited to '')
-rw-r--r--src/video_core/renderer_opengl/gl_rasterizer.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/video_core/renderer_opengl/gl_rasterizer.h b/src/video_core/renderer_opengl/gl_rasterizer.h
index 21c51f874..f6824c402 100644
--- a/src/video_core/renderer_opengl/gl_rasterizer.h
+++ b/src/video_core/renderer_opengl/gl_rasterizer.h
@@ -122,10 +122,12 @@ private:
* @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.
+ * @returns If depth (first) or stencil (second) are being stored in the bound zeta texture
+ * (requires using_depth_fb to be true)
*/
- void ConfigureFramebuffers(OpenGLState& current_state, bool use_color_fb = true,
- bool using_depth_fb = true, bool preserve_contents = true,
- std::optional<std::size_t> single_color_target = {});
+ std::pair<bool, bool> ConfigureFramebuffers(
+ OpenGLState& current_state, bool use_color_fb = true, bool using_depth_fb = true,
+ bool preserve_contents = true, std::optional<std::size_t> single_color_target = {});
/**
* Configures the current constbuffers to use for the draw command.
@@ -221,6 +223,7 @@ private:
std::map<FramebufferCacheKey, OGLFramebuffer> framebuffer_cache;
FramebufferConfigState current_framebuffer_config_state;
+ std::pair<bool, bool> current_depth_stencil_usage{};
std::array<SamplerInfo, Tegra::Engines::Maxwell3D::Regs::NumTextureSamplers> texture_samplers;