|
Blender V5.3
|
#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 48 of file BKE_attribute_storage.hh.
|
static |
Definition at line 97 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 blender::reorder_attribute_domain().
|
static |
Definition at line 85 of file attribute_storage.cc.
References blender::bke::default_value_for_type(), 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::bke::array_data_from_garray().
Referenced by blender::bke::attribute_init_to_data(), blender::bke::Attribute::data_for_write(), from_constructed(), blender::bke::mesh_calc_edges(), blender::bke::remove_invalid_edges(), blender::bke::remove_invalid_faces(), blender::geometry::reorder_attribute_groups(), blender::bke::AttributeStorage::resize(), and blender::shrink_attribute_storage().
|
static |
Definition at line 56 of file attribute_storage.cc.
References blender::CPPType::alignment, array< T, alignment >::array(), blender::bke::array_data_from_garray(), array< T, alignment >::data(), blender::CPPType::fill_construct_n(), blender::GPointer::get(), blender::MEM_new_array_zeroed_aligned, blender::memory_is_zero(), blender::CPPType::size, and blender::GPointer::type().
Referenced by blender::bke::attribute_init_to_data(), blender::bke::attribute_storage_blend_write_prepare(), blender::bke::attribute_to_writer(), blender::bke::ensure_array_storage(), from_default_value(), and blender::bke::get_mutable_attribute().
| void* blender::bke::Attribute::ArrayData::data |
Definition at line 52 of file BKE_attribute_storage.hh.
Referenced by blender::bke::attribute_legacy_convert_customdata_to_storage(), blender::bke::Attribute::data_for_write(), from_constructed(), blender::bke::mesh_freestyle_marks_to_generic(), and blender::um_arraystore_cd_expand().
| ImplicitSharingPtr blender::bke::Attribute::ArrayData::sharing_info |
Definition at line 55 of file BKE_attribute_storage.hh.
Referenced by blender::bke::attribute_legacy_convert_customdata_to_storage(), blender::bke::mesh_freestyle_marks_to_generic(), and blender::um_arraystore_cd_expand().
| int64_t blender::bke::Attribute::ArrayData::size |
The number of elements in the array.
Definition at line 54 of file BKE_attribute_storage.hh.
Referenced by blender::bke::attribute_legacy_convert_customdata_to_storage(), blender::bke::mesh_freestyle_marks_to_generic(), and blender::um_arraystore_cd_expand().