39 graph_inputs_(std::move(graph_inputs)),
40 graph_outputs_(std::move(graph_outputs)),
41 graph_input_index_by_socket_index_(graph.graph_inputs().size(), -1),
42 graph_output_index_by_socket_index_(graph.graph_outputs().size(), -1),
44 side_effect_provider_(side_effect_provider),
45 node_execute_wrapper_(node_execute_wrapper)
52 for (
const int i : graph_inputs_.index_range()) {
53 const OutputSocket &socket = *graph_inputs_[i];
54 BLI_assert(socket.node().is_interface());
55 inputs_.append({
"In", socket.type(), ValueUsage::Maybe});
56 graph_input_index_by_socket_index_[socket.index()] = i;
58 for (
const int i : graph_outputs_.index_range()) {
59 const InputSocket &socket = *graph_outputs_[i];
60 BLI_assert(socket.node().is_interface());
61 outputs_.append({
"Out", socket.type()});
62 graph_output_index_by_socket_index_[socket.index()] = i;
65 GenericExecutor::preprocess_graph(*
this);