Blender V5.3
blender::nodes::GeometryNodesLazyFunctionGraphInfo Struct Reference

#include <NOD_geometry_nodes_lazy_function.hh>

Public Member Functions

 GeometryNodesLazyFunctionGraphInfo (const char *debug_name)

Public Attributes

ResourceScope scope
std::shared_ptr< const bNodeTree > tree
uint32_t original_tree_session_uid
GeometryNodesGroupFunction function
lf::Graph graph
Map< int, const lf::Graph * > debug_zone_body_graphs
GeometryNodeLazyFunctionGraphMapping mapping
int num_inline_nodes_approximate = 0

Detailed Description

Data that is cached for every bNodeTree.

Definition at line 427 of file NOD_geometry_nodes_lazy_function.hh.

Constructor & Destructor Documentation

◆ GeometryNodesLazyFunctionGraphInfo()

blender::nodes::GeometryNodesLazyFunctionGraphInfo::GeometryNodesLazyFunctionGraphInfo ( const char * debug_name)

Member Data Documentation

◆ debug_zone_body_graphs

Map<int, const lf::Graph *> blender::nodes::GeometryNodesLazyFunctionGraphInfo::debug_zone_body_graphs

Definition at line 452 of file NOD_geometry_nodes_lazy_function.hh.

◆ function

◆ graph

lf::Graph blender::nodes::GeometryNodesLazyFunctionGraphInfo::graph

The actual lazy-function graph.

Definition at line 451 of file NOD_geometry_nodes_lazy_function.hh.

Referenced by GeometryNodesLazyFunctionGraphInfo().

◆ mapping

◆ num_inline_nodes_approximate

int blender::nodes::GeometryNodesLazyFunctionGraphInfo::num_inline_nodes_approximate = 0

Approximate number of nodes in the graph if all sub-graphs were inlined. This can be used as a simple heuristic for the complexity of the node group.

Definition at line 461 of file NOD_geometry_nodes_lazy_function.hh.

Referenced by blender::nodes::LazyFunctionForGroupNode::LazyFunctionForGroupNode().

◆ original_tree_session_uid

uint32_t blender::nodes::GeometryNodesLazyFunctionGraphInfo::original_tree_session_uid

Session UID of the original tree in Main that this is based on. Used to map evaluated data back to the original tree later on.

Definition at line 445 of file NOD_geometry_nodes_lazy_function.hh.

◆ scope

ResourceScope blender::nodes::GeometryNodesLazyFunctionGraphInfo::scope

Contains resources that need to be freed when the graph is not needed anymore.

Definition at line 431 of file NOD_geometry_nodes_lazy_function.hh.

◆ tree

std::shared_ptr<const bNodeTree> blender::nodes::GeometryNodesLazyFunctionGraphInfo::tree

Owned copy of the tree to evaluate. This allows the original tree to be freed without making the execution graph invalid. This is very common because many changes to a node tree trigger a new depsgraph-copy but not a new evaluation (since the output has not changed).

Without an extra copy, one could not output fields/closures to other objects without having those become dangling on trivial tree changes.

Definition at line 440 of file NOD_geometry_nodes_lazy_function.hh.


The documentation for this struct was generated from the following files: