Blender V5.0
blender::bke::Attribute::ArrayData Struct Reference

#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

Detailed Description

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.

Member Function Documentation

◆ from_constructed()

Attribute::ArrayData blender::bke::Attribute::ArrayData::from_constructed ( const CPPType & type,
int64_t domain_size )
static

◆ from_default_value()

Attribute::ArrayData blender::bke::Attribute::ArrayData::from_default_value ( const CPPType & type,
int64_t domain_size )
static

◆ from_uninitialized()

◆ from_value()

Member Data Documentation

◆ data

◆ sharing_info

ImplicitSharingPtr blender::bke::Attribute::ArrayData::sharing_info

◆ size

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().


The documentation for this struct was generated from the following files: