From dd31ed60c009e2977f746a591ff063d6a921970b Mon Sep 17 00:00:00 2001 From: Valeri Date: Sat, 24 Jul 2021 20:35:33 +0300 Subject: [PATCH] Add Get(Inv)WindowResolution shader functions (#5818) Those are available in upstream Dolphin, so it will help with keeping things compatible. --- .../renderer_opengl/post_processing_opengl.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/video_core/renderer_opengl/post_processing_opengl.cpp b/src/video_core/renderer_opengl/post_processing_opengl.cpp index b4841368d..80d8be7cb 100644 --- a/src/video_core/renderer_opengl/post_processing_opengl.cpp +++ b/src/video_core/renderer_opengl/post_processing_opengl.cpp @@ -90,6 +90,16 @@ float2 GetIInvResolution() return i_resolution.zw; } +float2 GetWindowResolution() +{ + return o_resolution.xy; +} + +float2 GetInvWindowResolution() +{ + return o_resolution.zw; +} + float2 GetOResolution() { return o_resolution.xy;