diff options
| author | JMC47 <JMC4789@gmail.com> | 2025-03-10 15:06:19 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-03-10 15:06:19 -0400 |
| commit | 5ed8b7bc9d8f70d5dae4f009939ac9715adf83b4 (patch) | |
| tree | 946de379d9606f4ba12e76f8bec7483fc282833c /Source/Core/VideoCommon/PostProcessing.cpp | |
| parent | d45e6c67293f10be4159d4e222ad3e903d7a835b (diff) | |
| parent | c18c039089bdc27cbccf92a9053ed80bb161a9b9 (diff) | |
Merge pull request #13403 from jordan-woyak/backend_info
VideoCommon: Move backend_info out of VideoConfig struct.
Diffstat (limited to 'Source/Core/VideoCommon/PostProcessing.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/PostProcessing.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
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<int>& src, static_cast<float>(src.GetHeight()) * rcp_src_height}; builtin_uniforms.src_layer = static_cast<s32>(src_layer); builtin_uniforms.time = static_cast<u32>(m_timer.ElapsedMs()); - builtin_uniforms.graphics_api = static_cast<s32>(g_ActiveConfig.backend_info.api_type); + builtin_uniforms.graphics_api = static_cast<s32>(g_backend_info.api_type); builtin_uniforms.intermediary_buffer = static_cast<s32>(intermediary_buffer); builtin_uniforms.resampling_method = static_cast<s32>(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; |
