38 if (!is_socket_available(input)) {
56 if (!original_node_group ||
ID_MISSING(original_node_group)) {
63 TIP_(
"Stack limit reached. Group node is ignored."));
69 this->
context().compute_context_cache().for_group_node(
84 node_group->ensure_interface_cache();
98 node_group->ensure_interface_cache();
100 const Result &input_result = this->
get_input(input_socket->identifier);
101 std::unique_ptr<Result> temporary_input = std::make_unique<Result>(
103 temporary_input->share_data(input_result);
104 temporary_inputs.append(std::move(temporary_input));
107 return temporary_inputs;
115 node_group->ensure_interface_cache();
117 Result &node_group_result = operation.
get_result(output_socket->identifier);
120 group_node_result.
share_data(node_group_result);
void set_reference_counts(Operation &operation)
const bNodeTree * get_node_group()
void write_outputs(Operation &operation)
Vector< std::unique_ptr< Result > > map_inputs(Operation &operation)
GroupNodeOperation(Context &context, const bNode &node)
NodeOperation(Context &context, const bNode &node)
void add_warning(nodes::NodeWarningType type, std::string message)
const ComputeContext & get_compute_context() const
const bNode & node() const
Result & get_result(StringRef identifier)
void allocate_default_remaining_outputs()
Context & context() const
Result & get_input(StringRef identifier) const
void map_input_to_result(StringRef identifier, Result *result)
void share_data(const Result &source)
bool should_compute() const
static ResultType type(gpu::TextureFormat format)
static ResultPrecision precision(gpu::TextureFormat format)
void set_reference_count(int count)
NodeOperation * get_group_node_operation(Context &context, const bNode &node)
BLI_assert(slot->slot_subtype.map==BMO_OP_SLOT_SUBTYPE_MAP_FLT)
T * DEG_get_original(T *id)