Blender V4.3
blender::bke::bake::ModifierCache Struct Reference

#include <BKE_bake_geometry_nodes_modifier.hh>

Public Member Functions

SimulationNodeCacheget_simulation_node_cache (const int id)
 
BakeNodeCacheget_bake_node_cache (const int id)
 
NodeBakeCacheget_node_bake_cache (const int id)
 
void reset_cache (int id)
 

Public Attributes

std::mutex mutex
 
Set< intrequested_bakes
 
Map< int, std::unique_ptr< SimulationNodeCache > > simulation_cache_by_id
 
Map< int, std::unique_ptr< BakeNodeCache > > bake_cache_by_id
 

Detailed Description

Definition at line 96 of file BKE_bake_geometry_nodes_modifier.hh.

Member Function Documentation

◆ get_bake_node_cache()

BakeNodeCache * blender::bke::bake::ModifierCache::get_bake_node_cache ( const int id)

Definition at line 57 of file bake_geometry_nodes_modifier.cc.

References bake_cache_by_id, and ptr.

Referenced by get_node_bake_cache(), and reset_cache().

◆ get_node_bake_cache()

NodeBakeCache * blender::bke::bake::ModifierCache::get_node_bake_cache ( const int id)

◆ get_simulation_node_cache()

SimulationNodeCache * blender::bke::bake::ModifierCache::get_simulation_node_cache ( const int id)

Definition at line 51 of file bake_geometry_nodes_modifier.cc.

References ptr, and simulation_cache_by_id.

Referenced by get_node_bake_cache(), and reset_cache().

◆ reset_cache()

void blender::bke::bake::ModifierCache::reset_cache ( int id)

Member Data Documentation

◆ bake_cache_by_id

◆ mutex

◆ requested_bakes

Set<int> blender::bke::bake::ModifierCache::requested_bakes

Set of nested node IDs (see bNestedNodeRef) that is expected to be baked in the next evaluation. This is filled and cleared by the bake operator.

Definition at line 102 of file BKE_bake_geometry_nodes_modifier.hh.

Referenced by blender::find_side_effect_nodes_for_baking(), and blender::NodesModifierSimulationParams::init_simulation_info().

◆ simulation_cache_by_id


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