Blender V5.3
NOD_partial_eval.hh
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2024 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
8
9#pragma once
10
12
13#include "BLI_function_ref.hh"
14#include "BLI_set.hh"
15
17
18#include "DNA_node_types.h"
19
31
51 const Span<SocketInContext> initial_sockets,
52 bke::ComputeContextCache &compute_context_cache,
53 FunctionRef<void(const NodeInContext &ctx_node,
54 Vector<const bNodeSocket *> &r_outputs_to_propagate)> evaluate_node_fn,
55 FunctionRef<bool(const SocketInContext &ctx_from, const SocketInContext &ctx_to)>
56 propagate_value_fn);
57
63
88 const Span<SocketInContext> initial_sockets,
89 bke::ComputeContextCache &compute_context_cache,
90 FunctionRef<void(const NodeInContext &ctx_node,
91 Vector<const bNodeSocket *> &r_modified_inputs)> evaluate_node_fn,
92 FunctionRef<bool(const SocketInContext &ctx_from, const SocketInContext &ctx_to)>
93 propagate_value_fn,
94 FunctionRef<void(const NodeInContext &ctx_node, Vector<const bNodeSocket *> &r_sockets)>
95 get_inputs_to_propagate_fn);
96
98
99} // namespace blender::nodes::partial_eval
UpstreamEvalTargets eval_upstream(const Span< SocketInContext > initial_sockets, bke::ComputeContextCache &compute_context_cache, FunctionRef< void(const NodeInContext &ctx_node, Vector< const bNodeSocket * > &r_modified_inputs)> evaluate_node_fn, FunctionRef< bool(const SocketInContext &ctx_from, const SocketInContext &ctx_to)> propagate_value_fn, FunctionRef< void(const NodeInContext &ctx_node, Vector< const bNodeSocket * > &r_sockets)> get_inputs_to_propagate_fn)
void eval_downstream(const Span< SocketInContext > initial_sockets, bke::ComputeContextCache &compute_context_cache, FunctionRef< void(const NodeInContext &ctx_node, Vector< const bNodeSocket * > &r_outputs_to_propagate)> evaluate_node_fn, FunctionRef< bool(const SocketInContext &ctx_from, const SocketInContext &ctx_to)> propagate_value_fn)
bool is_supported_value_node(const bNode &node)