|
Blender V5.3
|
#include "util/implicit_sharing.h"Go to the source code of this file.
Functions | |
| void | implicit_sharing_init (ImplicitSharingUserAddFn add_fn, ImplicitSharingUserRemoveFn remove_fn) |
Variables | |
| CCL_NAMESPACE_BEGIN ImplicitSharingUserAddFn | g_implicit_sharing_user_add_fn = nullptr |
| ImplicitSharingUserAddFn | g_implicit_sharing_user_remove_fn = nullptr |
| void implicit_sharing_init | ( | ImplicitSharingUserAddFn | add_fn, |
| ImplicitSharingUserRemoveFn | remove_fn ) |
Set function pointers to be called when implicit sharing (use count tracking) is enabled. "Sharing info" references that own data like attribute arrays are passed as void pointers to various Cycles API functions, and these functions are called to change the reference count.
Definition at line 12 of file util/implicit_sharing.cpp.
References g_implicit_sharing_user_add_fn, g_implicit_sharing_user_remove_fn, and implicit_sharing_init().
Referenced by implicit_sharing_init().
| CCL_NAMESPACE_BEGIN ImplicitSharingUserAddFn g_implicit_sharing_user_add_fn = nullptr |
Definition at line 9 of file util/implicit_sharing.cpp.
Referenced by Attribute::Attribute(), implicit_sharing_init(), and Attribute::set_motion_step_shared().
| ImplicitSharingUserAddFn g_implicit_sharing_user_remove_fn = nullptr |
Definition at line 10 of file util/implicit_sharing.cpp.
Referenced by Attribute::Attribute(), buffer_for_write(), free_step_buffer(), and implicit_sharing_init().