Changeset View
Changeset View
Standalone View
Standalone View
source/blender/functions/intern/multi_function_procedure.cc
| Show First 20 Lines • Show All 776 Lines • ▼ Show 20 Lines | public: | ||||
| void instruction_name_format(StringRef name, std::stringstream &ss) | void instruction_name_format(StringRef name, std::stringstream &ss) | ||||
| { | { | ||||
| ss << name; | ss << name; | ||||
| } | } | ||||
| void instruction_to_string(const MFCallInstruction &instruction, std::stringstream &ss) | void instruction_to_string(const MFCallInstruction &instruction, std::stringstream &ss) | ||||
| { | { | ||||
| const MultiFunction &fn = instruction.fn(); | const MultiFunction &fn = instruction.fn(); | ||||
| this->instruction_name_format(fn.name() + ": ", ss); | this->instruction_name_format(fn.debug_name() + ": ", ss); | ||||
| for (const int param_index : fn.param_indices()) { | for (const int param_index : fn.param_indices()) { | ||||
| const MFParamType param_type = fn.param_type(param_index); | const MFParamType param_type = fn.param_type(param_index); | ||||
| const MFVariable *variable = instruction.params()[param_index]; | const MFVariable *variable = instruction.params()[param_index]; | ||||
| ss << R"(<font color="grey30">)"; | ss << R"(<font color="grey30">)"; | ||||
| switch (param_type.interface_type()) { | switch (param_type.interface_type()) { | ||||
| case MFParamType::Input: { | case MFParamType::Input: { | ||||
| ss << "in"; | ss << "in"; | ||||
| break; | break; | ||||
| ▲ Show 20 Lines • Show All 85 Lines • Show Last 20 Lines | |||||