From c18c039089bdc27cbccf92a9053ed80bb161a9b9 Mon Sep 17 00:00:00 2001 From: Jordan Woyak Date: Fri, 7 Mar 2025 14:43:39 -0600 Subject: VideoCommon: Move backend_info out of VideoConfig struct. --- Source/Core/VideoCommon/PostProcessing.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'Source/Core/VideoCommon/PostProcessing.cpp') diff --git a/Source/Core/VideoCommon/PostProcessing.cpp b/Source/Core/VideoCommon/PostProcessing.cpp index e7ff694161..ada1513d1f 100644 --- a/Source/Core/VideoCommon/PostProcessing.cpp +++ b/Source/Core/VideoCommon/PostProcessing.cpp @@ -685,7 +685,7 @@ std::string PostProcessing::GetHeader(bool user_post_process) const ss << "SAMPLER_BINDING(0) uniform sampler2DArray samp0;\n"; ss << "SAMPLER_BINDING(1) uniform sampler2DArray samp1;\n"; - if (g_ActiveConfig.backend_info.bSupportsGeometryShaders) + if (g_backend_info.bSupportsGeometryShaders) { ss << "VARYING_LOCATION(0) in VertexData {\n"; ss << " float3 v_tex0;\n"; @@ -770,7 +770,7 @@ std::string PostProcessing::GetFooter() const static std::string GetVertexShaderBody() { std::ostringstream ss; - if (g_ActiveConfig.backend_info.bSupportsGeometryShaders) + if (g_backend_info.bSupportsGeometryShaders) { ss << "VARYING_LOCATION(0) out VertexData {\n"; ss << " float3 v_tex0;\n"; @@ -789,12 +789,12 @@ static std::string GetVertexShaderBody() ss << " v_tex0 = float3(src_rect.xy + (src_rect.zw * v_tex0.xy), float(src_layer));\n"; // Vulkan Y needs to be inverted on every pass - if (g_ActiveConfig.backend_info.api_type == APIType::Vulkan) + if (g_backend_info.api_type == APIType::Vulkan) { ss << " opos.y = -opos.y;\n"; } // OpenGL Y needs to be inverted in all passes except the last one - else if (g_ActiveConfig.backend_info.api_type == APIType::OpenGL) + else if (g_backend_info.api_type == APIType::OpenGL) { ss << " if (intermediary_buffer != 0)\n"; ss << " opos.y = -opos.y;\n"; @@ -887,7 +887,7 @@ void PostProcessing::FillUniformBuffer(const MathUtil::Rectangle& src, static_cast(src.GetHeight()) * rcp_src_height}; builtin_uniforms.src_layer = static_cast(src_layer); builtin_uniforms.time = static_cast(m_timer.ElapsedMs()); - builtin_uniforms.graphics_api = static_cast(g_ActiveConfig.backend_info.api_type); + builtin_uniforms.graphics_api = static_cast(g_backend_info.api_type); builtin_uniforms.intermediary_buffer = static_cast(intermediary_buffer); builtin_uniforms.resampling_method = static_cast(g_ActiveConfig.output_resampling_mode); @@ -1009,7 +1009,7 @@ static bool UseGeometryShaderForPostProcess(bool is_intermediary_buffer) switch (g_ActiveConfig.stereo_mode) { case StereoMode::QuadBuffer: - return !g_ActiveConfig.backend_info.bUsesExplictQuadBuffering; + return !g_backend_info.bUsesExplictQuadBuffering; case StereoMode::Anaglyph: case StereoMode::Passive: return is_intermediary_buffer; -- cgit v1.2.3