Blender V4.3
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 107 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 123 of file FN_lazy_function.hh.

References local_user_data, storage, and user_data.

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 121 of file FN_lazy_function.hh.

Referenced by Context().

◆ 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 113 of file FN_lazy_function.hh.

Referenced by Context(), and blender::nodes::execute_geometry_nodes_on_geometry().

◆ user_data

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

Custom user data that can be used in the function.

Definition at line 117 of file FN_lazy_function.hh.

Referenced by Context().


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