summaryrefslogtreecommitdiffstats
path: root/src/video_core/renderer_opengl/gl_rasterizer.h
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2019-02-01 18:50:09 +0100
committerGitHub <noreply@github.com>2019-02-01 18:50:09 +0100
commit2d226ff8ac3a1d11421b980cec5b671bff7a8159 (patch)
tree2ec17a544198d73e55a865c9c962a04735056c2e /src/video_core/renderer_opengl/gl_rasterizer.h
parentMerge pull request #2078 from lioncash/timer (diff)
parentgl_rasterizer: Workaround invalid zeta clears (diff)
downloadyuzu-2d226ff8ac3a1d11421b980cec5b671bff7a8159.tar
yuzu-2d226ff8ac3a1d11421b980cec5b671bff7a8159.tar.gz
yuzu-2d226ff8ac3a1d11421b980cec5b671bff7a8159.tar.bz2
yuzu-2d226ff8ac3a1d11421b980cec5b671bff7a8159.tar.lz
yuzu-2d226ff8ac3a1d11421b980cec5b671bff7a8159.tar.xz
yuzu-2d226ff8ac3a1d11421b980cec5b671bff7a8159.tar.zst
yuzu-2d226ff8ac3a1d11421b980cec5b671bff7a8159.zip
Diffstat (limited to 'src/video_core/renderer_opengl/gl_rasterizer.h')
-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 22a0796b6..7f2bf0f8b 100644
--- a/src/video_core/renderer_opengl/gl_rasterizer.h
+++ b/src/video_core/renderer_opengl/gl_rasterizer.h
@@ -121,10 +121,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.
void SetupConstBuffers(Tegra::Engines::Maxwell3D::Regs::ShaderStage stage, const Shader& shader,
@@ -213,6 +215,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;