Blender V5.0
DNA_attribute_types.h
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2025 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
5#pragma once
6
7#include <stdint.h>
8
10
11#ifdef __cplusplus
12
13namespace blender::bke {
16} // namespace blender::bke
17
19#else
21#endif
22
25 void *data;
27 /* The number of elements in the array. */
29};
30
36
38struct Attribute {
39 const char *name;
40 /* bke::AttrType. */
41 int16_t data_type;
42 /* bke::AttrDomain. */
43 int8_t domain;
44 /* bke::AttrStorageType */
46 char _pad[4];
47
49 void *data;
50};
51
57 /* Array only used in files, otherwise #AttributeStorageRuntime::attributes is used. */
60
61 char _pad[4];
62
64
65#ifdef __cplusplus
68#endif
69};
struct ImplicitSharingInfoHandle ImplicitSharingInfoHandle
struct AttributeStorageRuntimeHandle AttributeStorageRuntimeHandle
long long int int64_t
float wrap(float value, float max, float min)
Definition node_math.h:103
const ImplicitSharingInfoHandle * sharing_info
const ImplicitSharingInfoHandle * sharing_info
AttributeStorageRuntimeHandle * runtime
struct Attribute * dna_attributes
const char * name
Attribute(ustring name, const TypeDesc type, AttributeElement element, Geometry *geom, AttributePrimitive prim)