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/FramebufferShaderGen.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/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. |
