From 83de6b7d4c29a3e476e7a83afbc49b57cca66069 Mon Sep 17 00:00:00 2001 From: TheTurtle Date: Mon, 2 Dec 2024 22:46:02 +0200 Subject: [PATCH] emit_spirv: Simplify variable definition --- src/shader_recompiler/backend/spirv/spirv_emit_context.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/shader_recompiler/backend/spirv/spirv_emit_context.cpp b/src/shader_recompiler/backend/spirv/spirv_emit_context.cpp index aca53505..47de7acb 100644 --- a/src/shader_recompiler/backend/spirv/spirv_emit_context.cpp +++ b/src/shader_recompiler/backend/spirv/spirv_emit_context.cpp @@ -317,9 +317,7 @@ void EmitContext::DefineInputs() { frag_depth = DefineVariable(F32[1], spv::BuiltIn::FragDepth, spv::StorageClass::Output); front_facing = DefineVariable(U1[1], spv::BuiltIn::FrontFacing, spv::StorageClass::Input); if (profile.needs_manual_interpolation) { - gl_bary_coord_id = DefineVar(F32[3], spv::StorageClass::Input); - Decorate(gl_bary_coord_id, spv::Decoration::BuiltIn, spv::BuiltIn::BaryCoordKHR); - interfaces.push_back(gl_bary_coord_id); + gl_bary_coord_id = DefineVariable(F32[3], spv::BuiltIn::BaryCoordKHR, spv::StorageClass::Input); } for (s32 i = 0; i < runtime_info.fs_info.num_inputs; i++) { const auto& input = runtime_info.fs_info.inputs[i];