From f3dc5ee4a9e0725b17bd3e0a4ad1bdbeb0afc8a9 Mon Sep 17 00:00:00 2001 From: nmzik Date: Fri, 2 Oct 2026 16:07:16 +0400 Subject: [PATCH] Collect shader interface metadata in place without copying resources --- .../shader/recompiler/ir/passes/ShaderInfoCollection.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/graphics/shader/recompiler/ir/passes/ShaderInfoCollection.cpp b/src/graphics/shader/recompiler/ir/passes/ShaderInfoCollection.cpp index 242a0866a..315c5c0f9 100644 --- a/src/graphics/shader/recompiler/ir/passes/ShaderInfoCollection.cpp +++ b/src/graphics/shader/recompiler/ir/passes/ShaderInfoCollection.cpp @@ -412,7 +412,7 @@ void CollectShaderInfo(Program& program, ShaderStageInputInfo input_info) { ValidateOptions(program, input_info); ValidateValueReferences(program, input_info); - auto next = program.info; + auto& next = program.info; next.inputs.clear(); next.outputs.clear(); next.has_bitwise_xor = @@ -433,7 +433,6 @@ void CollectShaderInfo(Program& program, ShaderStageInputInfo input_info) { } CollectBuiltinInputs(program, next); CollectOutputs(program, input_info, next); - program.info = std::move(next); program.shader_info_complete = true; }