Blender V5.0
attribute_storage_access.hh File Reference
#include "BKE_attribute.hh"
#include "BKE_attribute_storage.hh"
#include <optional>

Go to the source code of this file.

Classes

struct  blender::bke::AttrBuiltinInfo

Namespaces

namespace  blender
namespace  blender::bke

Typedefs

using blender::bke::AttrUpdateOnChange = void (*)(void *owner)

Functions

GAttributeReader blender::bke::attribute_to_reader (const Attribute &attribute, const AttrDomain domain, const int64_t domain_size)
GAttributeWriter blender::bke::attribute_to_writer (void *owner, const Map< StringRef, AttrUpdateOnChange > &changed_tags, const int64_t domain_size, Attribute &attribute)
Attribute::DataVariant blender::bke::attribute_init_to_data (const bke::AttrType data_type, const int64_t domain_size, const AttributeInit &initializer)
GVArray blender::bke::get_varray_attribute (const AttributeStorage &storage, AttrDomain domain, const CPPType &cpp_type, StringRef name, int64_t domain_size, const void *default_value)
template<typename T>
VArray< Tblender::bke::get_varray_attribute (const AttributeStorage &storage, const AttrDomain domain, const StringRef name, const int64_t domain_size, const T &default_value)
std::optional< GSpanblender::bke::get_span_attribute (const AttributeStorage &storage, const AttrDomain domain, const CPPType &cpp_type, const StringRef name, const int64_t domain_size)
template<typename T>
std::optional< Span< T > > blender::bke::get_span_attribute (const AttributeStorage &storage, const AttrDomain domain, const StringRef name, const int64_t domain_size)
GMutableSpan blender::bke::get_mutable_attribute (AttributeStorage &storage, const AttrDomain domain, const CPPType &cpp_type, const StringRef name, const int64_t domain_size, const void *custom_default_value)
template<typename T>
MutableSpan< Tblender::bke::get_mutable_attribute (AttributeStorage &storage, const AttrDomain domain, const StringRef name, const int64_t domain_size, const T &default_value=T())