diff options
| author | Jordan Woyak <jordan.woyak@gmail.com> | 2025-03-07 14:43:39 -0600 |
|---|---|---|
| committer | Jordan Woyak <jordan.woyak@gmail.com> | 2025-03-09 01:42:45 -0600 |
| commit | c18c039089bdc27cbccf92a9053ed80bb161a9b9 (patch) | |
| tree | eaaaa442e14441bd678c0c433d5765fa84c549d4 /Source/Core/VideoCommon/FramebufferShaderGen.cpp | |
| parent | 99e686de34c2c862a01ee3859abb4b3256f04a63 (diff) | |
VideoCommon: Move backend_info out of VideoConfig struct.
Diffstat (limited to 'Source/Core/VideoCommon/FramebufferShaderGen.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/FramebufferShaderGen.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
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. |
