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/FramebufferShaderGen.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'Source/Core/VideoCommon/FramebufferShaderGen.cpp') diff --git a/Source/Core/VideoCommon/FramebufferShaderGen.cpp b/Source/Core/VideoCommon/FramebufferShaderGen.cpp index 25b6581469..248146e2b6 100644 --- a/Source/Core/VideoCommon/FramebufferShaderGen.cpp +++ b/Source/Core/VideoCommon/FramebufferShaderGen.cpp @@ -20,7 +20,7 @@ namespace { APIType GetAPIType() { - return g_ActiveConfig.backend_info.api_type; + return g_backend_info.api_type; } void EmitUniformBufferDeclaration(ShaderCode& code) @@ -109,7 +109,7 @@ void EmitVertexMainDeclaration(ShaderCode& code, u32 num_tex_inputs, u32 num_col if (position_input) code.Write("ATTRIBUTE_LOCATION({:s}) in float4 rawpos;\n", ShaderAttrib::Position); - if (g_ActiveConfig.backend_info.bSupportsGeometryShaders) + if (g_backend_info.bSupportsGeometryShaders) { code.Write("VARYING_LOCATION(0) out VertexData {{\n"); for (u32 i = 0; i < num_tex_outputs; i++) @@ -146,7 +146,7 @@ void EmitPixelMainDeclaration(ShaderCode& code, u32 num_tex_inputs, u32 num_colo case APIType::OpenGL: case APIType::Vulkan: { - if (g_ActiveConfig.backend_info.bSupportsGeometryShaders) + if (g_backend_info.bSupportsGeometryShaders) { code.Write("VARYING_LOCATION(0) in VertexData {{\n"); for (u32 i = 0; i < num_tex_inputs; i++) @@ -406,7 +406,7 @@ std::string GenerateEFBPokeVertexShader() code.Write("{{\n" " v_col0 = rawcolor0;\n" " opos = float4(rawpos.xyz, 1.0f);\n"); - if (g_ActiveConfig.backend_info.bSupportsLargePoints) + if (g_backend_info.bSupportsLargePoints) code.Write(" gl_PointSize = rawpos.w;\n"); // NDC space is flipped in Vulkan. -- cgit v1.2.3