diff options
author | Fernando S <fsahmkow27@gmail.com> | 2021-12-22 17:36:05 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-22 17:36:05 +0100 |
commit | 648c7b4ed6fb86d6f98a6e19301c53c1ccfdd512 (patch) | |
tree | 6e489900becbae18884335745d9e3409761c319e /src/shader_recompiler/backend/glsl/glsl_emit_context.cpp | |
parent | Merge pull request #7599 from FernandoS27/primrestart-vulkan (diff) | |
parent | Address format clang (diff) | |
download | yuzu-648c7b4ed6fb86d6f98a6e19301c53c1ccfdd512.tar yuzu-648c7b4ed6fb86d6f98a6e19301c53c1ccfdd512.tar.gz yuzu-648c7b4ed6fb86d6f98a6e19301c53c1ccfdd512.tar.bz2 yuzu-648c7b4ed6fb86d6f98a6e19301c53c1ccfdd512.tar.lz yuzu-648c7b4ed6fb86d6f98a6e19301c53c1ccfdd512.tar.xz yuzu-648c7b4ed6fb86d6f98a6e19301c53c1ccfdd512.tar.zst yuzu-648c7b4ed6fb86d6f98a6e19301c53c1ccfdd512.zip |
Diffstat (limited to '')
-rw-r--r-- | src/shader_recompiler/backend/glsl/glsl_emit_context.cpp | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/src/shader_recompiler/backend/glsl/glsl_emit_context.cpp b/src/shader_recompiler/backend/glsl/glsl_emit_context.cpp index 1de017e76..bc9d2a904 100644 --- a/src/shader_recompiler/backend/glsl/glsl_emit_context.cpp +++ b/src/shader_recompiler/backend/glsl/glsl_emit_context.cpp @@ -211,27 +211,6 @@ std::string_view OutputPrimitive(OutputTopology topology) { throw InvalidArgument("Invalid output topology {}", topology); } -void SetupLegacyOutPerVertex(EmitContext& ctx, std::string& header) { - if (!ctx.info.stores.Legacy()) { - return; - } - if (ctx.info.stores.FixedFunctionTexture()) { - header += "vec4 gl_TexCoord[8];"; - } - if (ctx.info.stores.AnyComponent(IR::Attribute::ColorFrontDiffuseR)) { - header += "vec4 gl_FrontColor;"; - } - if (ctx.info.stores.AnyComponent(IR::Attribute::ColorFrontSpecularR)) { - header += "vec4 gl_FrontSecondaryColor;"; - } - if (ctx.info.stores.AnyComponent(IR::Attribute::ColorBackDiffuseR)) { - header += "vec4 gl_BackColor;"; - } - if (ctx.info.stores.AnyComponent(IR::Attribute::ColorBackSpecularR)) { - header += "vec4 gl_BackSecondaryColor;"; - } -} - void SetupOutPerVertex(EmitContext& ctx, std::string& header) { if (!StoresPerVertexAttributes(ctx.stage)) { return; @@ -250,7 +229,6 @@ void SetupOutPerVertex(EmitContext& ctx, std::string& header) { ctx.profile.support_viewport_index_layer_non_geometry && ctx.stage != Stage::Geometry) { header += "int gl_ViewportIndex;"; } - SetupLegacyOutPerVertex(ctx, header); header += "};"; if (ctx.info.stores[IR::Attribute::ViewportIndex] && ctx.stage == Stage::Geometry) { header += "out int gl_ViewportIndex;"; @@ -282,21 +260,6 @@ void SetupInPerVertex(EmitContext& ctx, std::string& header) { } header += "}gl_in[gl_MaxPatchVertices];"; } - -void SetupLegacyInPerFragment(EmitContext& ctx, std::string& header) { - if (!ctx.info.loads.Legacy()) { - return; - } - header += "in gl_PerFragment{"; - if (ctx.info.loads.FixedFunctionTexture()) { - header += "vec4 gl_TexCoord[8];"; - } - if (ctx.info.loads.AnyComponent(IR::Attribute::ColorFrontDiffuseR)) { - header += "vec4 gl_Color;"; - } - header += "};"; -} - } // Anonymous namespace EmitContext::EmitContext(IR::Program& program, Bindings& bindings, const Profile& profile_, @@ -361,7 +324,6 @@ EmitContext::EmitContext(IR::Program& program, Bindings& bindings, const Profile } SetupOutPerVertex(*this, header); SetupInPerVertex(*this, header); - SetupLegacyInPerFragment(*this, header); for (size_t index = 0; index < IR::NUM_GENERICS; ++index) { if (!info.loads.Generic(index) || !runtime_info.previous_stage_stores.Generic(index)) { |