|
Blender V5.0
|
#include <BKE_attribute_storage.hh>
Static Public Member Functions | |
| static ArrayData | from_value (const GPointer &value, int64_t domain_size) |
| static ArrayData | from_default_value (const CPPType &type, int64_t domain_size) |
| static ArrayData | from_uninitialized (const CPPType &type, int64_t domain_size) |
| static ArrayData | from_constructed (const CPPType &type, int64_t domain_size) |
Public Attributes | |
| void * | data |
| int64_t | size |
| ImplicitSharingPtr | sharing_info |
Data for an attribute stored as a full contiguous array with a data type exactly matching the attribute's type. The array referenced must match the size of the domain and the data type.
Definition at line 39 of file BKE_attribute_storage.hh.
|
static |
Definition at line 102 of file attribute_storage.cc.
References data, blender::CPPType::default_construct_n(), and from_uninitialized().
Referenced by blender::bke::attribute_init_to_data(), blender::geometry::reorder_attribute_domain(), and reorder_attribute_domain().
|
static |
Definition at line 85 of file attribute_storage.cc.
References blender::CPPType::default_value(), and from_value().
Referenced by blender::bke::attribute_init_to_data(), and blender::ed::geometry::geometry_attribute_add_exec().
|
static |
Definition at line 91 of file attribute_storage.cc.
References blender::CPPType::alignment, BLI_assert, data, blender::implicit_sharing::info_for_mem_free(), blender::CPPType::is_trivially_destructible, MEM_malloc_arrayN_aligned, and blender::CPPType::size.
Referenced by blender::bke::Attribute::data_for_write(), from_constructed(), blender::geometry::reorder_attribute_groups(), blender::bke::AttributeStorage::resize(), and shrink_attribute_storage().
|
static |
Definition at line 63 of file attribute_storage.cc.
References blender::CPPType::alignment, BLI_assert, BLI_memory_is_zero(), data, blender::CPPType::fill_construct_n(), blender::GPointer::get(), blender::implicit_sharing::info_for_mem_free(), blender::CPPType::is_trivially_destructible, MEM_calloc_arrayN_aligned, MEM_malloc_arrayN_aligned, blender::CPPType::size, and blender::GPointer::type().
Referenced by from_default_value(), and blender::bke::get_mutable_attribute().
| void* blender::bke::Attribute::ArrayData::data |
Definition at line 43 of file BKE_attribute_storage.hh.
Referenced by blender::bke::attribute_legacy_convert_customdata_to_storage(), blender::bke::Attribute::data_for_write(), from_constructed(), from_uninitialized(), and from_value().
| ImplicitSharingPtr blender::bke::Attribute::ArrayData::sharing_info |
Definition at line 46 of file BKE_attribute_storage.hh.
Referenced by blender::bke::attribute_legacy_convert_customdata_to_storage().
| int64_t blender::bke::Attribute::ArrayData::size |
The number of elements in the array.
Definition at line 45 of file BKE_attribute_storage.hh.
Referenced by blender::bke::attribute_legacy_convert_customdata_to_storage().