From 12d1f94d47274fb0c6ecff20a942107de1fd0573 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Rydg=C3=A5rd?= Date: Thu, 20 Oct 2022 16:16:52 +0200 Subject: [PATCH] Start stereo postshader work --- GPU/Common/PostShader.cpp | 1 + GPU/Common/PostShader.h | 2 ++ 2 files changed, 3 insertions(+) diff --git a/GPU/Common/PostShader.cpp b/GPU/Common/PostShader.cpp index 2d8529f356..bdfce695c3 100644 --- a/GPU/Common/PostShader.cpp +++ b/GPU/Common/PostShader.cpp @@ -169,6 +169,7 @@ void LoadPostShaderInfo(Draw::DrawContext *draw, const std::vector &direct info.vertexShaderFile = path / temp; section.Get("OutputResolution", &info.outputResolution, false); section.Get("Upscaling", &info.isUpscalingFilter, false); + section.Get("Stereo", &info.isStereo, false); section.Get("SSAA", &info.SSAAFilterLevel, 0); section.Get("60fps", &info.requires60fps, false); section.Get("UsePreviousFrame", &info.usePreviousFrame, false); diff --git a/GPU/Common/PostShader.h b/GPU/Common/PostShader.h index 5226638078..849ac884f3 100644 --- a/GPU/Common/PostShader.h +++ b/GPU/Common/PostShader.h @@ -39,6 +39,8 @@ struct ShaderInfo { bool outputResolution; // Use x1 rendering res + nearest screen scaling filter bool isUpscalingFilter; + // Is used to post-process stereo-rendering to mono, like red/blue. + bool isStereo; // Use 2x display resolution for supersampling with blurry shaders. int SSAAFilterLevel; // Force constant/max refresh for animated filters