Blender V5.3
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
8
9#pragma once
10
11#include <cstdint>
12
14
15namespace blender {
16
17namespace bke {
20} // namespace bke
21
24 void *data = nullptr;
26 /* The number of elements in the array. */
35 char _pad[7] = {};
36};
37
40 void *data = nullptr;
42};
43
45struct Attribute {
46 const char *name = nullptr;
47 /* bke::AttrType. */
49 /* bke::AttrDomain. */
51 /* bke::AttrStorageType */
53 char _pad[4] = {};
54
56 void *data = nullptr;
57};
58
64 /* Array only used in files, otherwise #AttributeStorageRuntime::attributes is used. */
65 struct Attribute *dna_attributes = nullptr;
67
68 char _pad[4] = {};
69
71
72#ifdef __cplusplus
74 const bke::AttributeStorage &wrap() const;
75#endif
76};
77
78} // namespace blender
BLI_INLINE Texture * wrap(MTLTexture *texture)
BMesh Iterators.
__int64 int64_t
Definition BKE_text.h:90
ImplicitSharingInfo ImplicitSharingInfoHandle
signed char int8_t
Definition BKE_text.h:76
signed short int16_t
Definition BKE_text.h:77
const ImplicitSharingInfoHandle * sharing_info
const ImplicitSharingInfoHandle * sharing_info
struct Attribute * dna_attributes
bke::AttributeStorageRuntime * runtime