mirror of
https://github.com/KytyPS5/KytyPS5.git
synced 2026-10-28 08:13:05 +00:00
Collect shader interface metadata in place without copying resources
This commit is contained in:
1 parent
2545723065
commit
f3dc5ee4a9
1 file changed
+1
-2
@@ -412,7 +412,7 @@ void CollectShaderInfo(Program& program, ShaderStageInputInfo input_info) {
|
|||||||
ValidateOptions(program, input_info);
|
ValidateOptions(program, input_info);
|
||||||
ValidateValueReferences(program, input_info);
|
ValidateValueReferences(program, input_info);
|
||||||
|
|
||||||
auto next = program.info;
|
auto& next = program.info;
|
||||||
next.inputs.clear();
|
next.inputs.clear();
|
||||||
next.outputs.clear();
|
next.outputs.clear();
|
||||||
next.has_bitwise_xor =
|
next.has_bitwise_xor =
|
||||||
@@ -433,7 +433,6 @@ void CollectShaderInfo(Program& program, ShaderStageInputInfo input_info) {
|
|||||||
}
|
}
|
||||||
CollectBuiltinInputs(program, next);
|
CollectBuiltinInputs(program, next);
|
||||||
CollectOutputs(program, input_info, next);
|
CollectOutputs(program, input_info, next);
|
||||||
program.info = std::move(next);
|
|
||||||
program.shader_info_complete = true;
|
program.shader_info_complete = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user