Blender
V5.3
intern
cycles
blender
blender/implicit_sharing.cpp
Go to the documentation of this file.
1
/* SPDX-FileCopyrightText: 2026 Blender Authors
2
*
3
* SPDX-License-Identifier: Apache-2.0 */
4
5
#include "
util/implicit_sharing.h
"
6
7
#include "
BLI_implicit_sharing.hh
"
8
9
#include "
blender/CCL_api.h
"
10
11
namespace
blender
{
12
13
void
CCL_implicit_sharing_init
()
14
{
15
ccl::implicit_sharing_init(
16
[](ccl::ImplicitSharingInfo
data
) {
17
const
auto
*info =
static_cast<
const
blender::ImplicitSharingInfo
*
>
(
data
);
18
info->
add_user
();
19
},
20
[](ccl::ImplicitSharingInfo
data
) {
21
const
auto
*info =
static_cast<
const
blender::ImplicitSharingInfo
*
>
(
data
);
22
info->
remove_user_and_delete_if_last
();
23
});
24
}
25
26
}
// namespace blender
BLI_implicit_sharing.hh
CCL_api.h
blender::blender::ImplicitSharingInfo
Definition
bmesh_polygon.hh:44
blender::blender::ImplicitSharingInfo::add_user
void add_user() const
Definition
bmesh_polygon.hh:91
blender::blender::ImplicitSharingInfo::remove_user_and_delete_if_last
void remove_user_and_delete_if_last() const
Definition
bmesh_polygon.hh:142
implicit_sharing.h
blender
BMesh Iterators.
Definition
ANIM_action.hh:30
blender::CCL_implicit_sharing_init
void CCL_implicit_sharing_init()
Definition
blender/implicit_sharing.cpp:13
blender::data
BMesh const char void * data
Definition
bmesh_iterators_inline.hh:39
Generated on
for Blender by
doxygen
1.18.0