Blender V4.5
blender::fn::lazy_function::Context Struct Reference

#include <FN_lazy_function.hh>

Public Member Functions

 Context (void *storage, UserData *user_data, LocalUserData *local_user_data)
 

Public Attributes

void * storage
 
UserDatauser_data
 
LocalUserDatalocal_user_data
 

Detailed Description

Passed to the lazy-function when it is executed.

Definition at line 80 of file FN_lazy_function.hh.

Constructor & Destructor Documentation

◆ Context()

blender::fn::lazy_function::Context::Context ( void * storage,
UserData * user_data,
LocalUserData * local_user_data )
inline

Definition at line 96 of file FN_lazy_function.hh.

Member Data Documentation

◆ local_user_data

LocalUserData* blender::fn::lazy_function::Context::local_user_data

Custom user data that is local to the thread that executes the lazy-function.

Definition at line 94 of file FN_lazy_function.hh.

Referenced by blender::nodes::GeoNodeExecParams::local_user_data(), blender::nodes::ScopedComputeContextTimer::~ScopedComputeContextTimer(), and blender::nodes::ScopedNodeTimer::~ScopedNodeTimer().

◆ storage

void* blender::fn::lazy_function::Context::storage

If the lazy-function has some state (which only makes sense when it is executed more than once to finish its job), the state is stored here. This points to memory returned from LazyFunction::init_storage.

Definition at line 86 of file FN_lazy_function.hh.

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

◆ user_data

UserData* blender::fn::lazy_function::Context::user_data

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