Blender V5.3
blender::AttributeArray Struct Reference

#include <DNA_attribute_types.h>

Public Attributes

void * data = nullptr
const ImplicitSharingInfoHandle * sharing_info = nullptr
int64_t size = 0
int8_t is_single = 0
char _pad [7] = {}

Detailed Description

DNA data for bke::Attribute::ArrayData.

Definition at line 23 of file DNA_attribute_types.h.

Member Data Documentation

◆ _pad

char blender::AttributeArray::_pad[7] = {}

Definition at line 35 of file DNA_attribute_types.h.

◆ data

◆ is_single

int8_t blender::AttributeArray::is_single = 0

Blender 5.0 (the first version to read AttributeStorage) does not fully support single value storage at runtime, even though it supports reading it from the file. The purpose of this field is to let versions 5.1 and later detect that the storage is a single value, while still being compatible with 5.0, which doesn't have this field and will just use array storage.

Definition at line 34 of file DNA_attribute_types.h.

◆ sharing_info

const ImplicitSharingInfoHandle* blender::AttributeArray::sharing_info = nullptr

Definition at line 25 of file DNA_attribute_types.h.

Referenced by blender::bke::AttributeStorage::blend_write().

◆ size

int64_t blender::AttributeArray::size = 0

Definition at line 27 of file DNA_attribute_types.h.

Referenced by blender::bke::AttributeStorage::blend_write().


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