mirror of
https://github.com/KytyPS5/KytyPS5.git
synced 2026-10-20 10:56:58 +02:00
Collect shader interface metadata in place without copying resources
This commit is contained in:
@@ -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