Blender V5.3
NOD_geometry_nodes_execute.hh
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2023 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
8
9#pragma once
10
13#include "BLI_resource_scope.hh"
14#include "BLI_vector_set.hh"
15
16#include "DNA_node_types.h"
17
18#include "BKE_idprop.hh"
19
21
22namespace blender {
23
24struct bNodeTree;
26struct PointerRNA;
27namespace bke {
28struct GeometrySet;
29}
30struct IDProperty;
31namespace nodes {
32struct GeoNodesCallData;
33namespace eval_log {
34class NodesEvalLog;
35} // namespace eval_log
36} // namespace nodes
37
38namespace nodes {
39
40constexpr StringRef input_use_attribute_suffix = "_use_attribute";
41constexpr StringRef input_attribute_name_suffix = "_attribute_name";
42
44 StringRef operator()(const IDProperty *value) const
45 {
46 return StringRef(value->name);
47 }
48};
49
54
59bool input_has_attribute_toggle(const bNodeTree &node_tree, const int socket_index);
60
62 const PointerRNA &properties_ptr,
63 const ComputeContext &base_compute_context,
64 GeoNodesCallData &call_data,
65 bke::GeometrySet input_geometry);
66
73 const PointerRNA &properties_ptr,
74 ResourceScope &scope);
75
76} // namespace nodes
77} // namespace blender
constexpr StringRef()
Vector< InferenceValue > get_geometry_nodes_input_inference_values(const bNodeTree &btree, const PointerRNA &properties_ptr, ResourceScope &scope)
bool input_has_attribute_toggle(const bNodeTree &node_tree, const int socket_index)
bool socket_type_has_attribute_toggle(const eNodeSocketDatatype type)
constexpr StringRef input_attribute_name_suffix
constexpr StringRef input_use_attribute_suffix
bke::GeometrySet execute_geometry_nodes_on_geometry(const bNodeTree &btree, const PointerRNA &properties_ptr, const ComputeContext &base_compute_context, GeoNodesCallData &call_data, bke::GeometrySet input_geometry)
BMesh Iterators.
StringRef operator()(const IDProperty *value) const