Blender
V5.3
source
blender
blenkernel
BKE_attribute_enums.hh
Go to the documentation of this file.
1
/* SPDX-FileCopyrightText: 2026 Blender Authors
2
*
3
* SPDX-License-Identifier: GPL-2.0-or-later */
4
8
9
#pragma once
10
11
#include <cstdint>
12
13
namespace
blender::bke
{
14
16
enum class
AttrStorageType
:
int8_t
{
18
Array
= 0,
20
Single
= 1,
21
};
22
23
enum class
AttrType
:
int16_t
{
24
Bool
= 0,
25
Int8
= 1,
26
Int16_2D
= 2,
27
Int32
= 3,
28
Int32_2D
= 4,
29
Float
= 5,
30
Float2
= 6,
31
Float3
= 7,
32
Float4x4
= 8,
33
ColorByte
= 9,
34
ColorFloat
= 10,
35
Quaternion
= 11,
36
String
= 12,
37
Float4
= 13,
38
};
39
40
enum class
AttrDomain
:
int8_t
{
41
/* Mesh, Curve or Point Cloud Point. */
42
Point
= 0,
43
/* Mesh Edge. */
44
Edge
= 1,
45
/* Mesh Face. */
46
Face
= 2,
47
/* Mesh Corner. */
48
Corner
= 3,
49
/* A single curve in a larger curve data-block. */
50
Curve
= 4,
51
/* Instance. */
52
Instance
= 5,
53
/* A layer in a grease pencil data-block. */
54
Layer
= 6,
55
};
56
#define ATTR_DOMAIN_NUM 7
57
58
enum class
AttrDomainSelection
:
int8_t
{
59
/* Used to choose automatically based on other data. */
60
Auto
= -1,
61
Point
=
int8_t
(
AttrDomain::Point
),
62
Edge
=
int8_t
(
AttrDomain::Edge
),
63
Face
=
int8_t
(
AttrDomain::Face
),
64
Corner
=
int8_t
(
AttrDomain::Corner
),
65
Curve
=
int8_t
(
AttrDomain::Curve
),
66
Instance
=
int8_t
(
AttrDomain::Instance
),
67
Layer
=
int8_t
(
AttrDomain::Layer
),
68
};
69
70
}
// namespace blender::bke
blender::Array
Definition
BLI_array.hh:50
blender::animrig::Layer
Definition
ANIM_action.hh:620
blender::eevee::Instance
A running instance of the engine.
Definition
eevee_instance.hh:94
Float
@ Float
Definition
draco_bridge/intern/common.h:32
blender::bke
Definition
AS_asset_library.hh:32
blender::bke::AttrDomainSelection
AttrDomainSelection
Definition
BKE_attribute_enums.hh:58
blender::bke::AttrDomainSelection::Auto
@ Auto
Definition
BKE_attribute_enums.hh:60
blender::bke::AttrDomain
AttrDomain
Definition
BKE_attribute_enums.hh:40
blender::bke::AttrDomain::Point
@ Point
Definition
BKE_attribute_enums.hh:42
blender::bke::AttrDomain::Curve
@ Curve
Definition
BKE_attribute_enums.hh:50
blender::bke::AttrDomain::Layer
@ Layer
Definition
BKE_attribute_enums.hh:54
blender::bke::AttrDomain::Corner
@ Corner
Definition
BKE_attribute_enums.hh:48
blender::bke::AttrDomain::Face
@ Face
Definition
BKE_attribute_enums.hh:46
blender::bke::AttrDomain::Instance
@ Instance
Definition
BKE_attribute_enums.hh:52
blender::bke::AttrDomain::Edge
@ Edge
Definition
BKE_attribute_enums.hh:44
blender::bke::AttrType
AttrType
Definition
BKE_attribute_enums.hh:23
blender::bke::AttrType::Float4
@ Float4
Definition
BKE_attribute_enums.hh:37
blender::bke::AttrType::ColorFloat
@ ColorFloat
Definition
BKE_attribute_enums.hh:34
blender::bke::AttrType::Int32_2D
@ Int32_2D
Definition
BKE_attribute_enums.hh:28
blender::bke::AttrType::Float2
@ Float2
Definition
BKE_attribute_enums.hh:30
blender::bke::AttrType::Int8
@ Int8
Definition
BKE_attribute_enums.hh:25
blender::bke::AttrType::Float3
@ Float3
Definition
BKE_attribute_enums.hh:31
blender::bke::AttrType::ColorByte
@ ColorByte
Definition
BKE_attribute_enums.hh:33
blender::bke::AttrType::Int16_2D
@ Int16_2D
Definition
BKE_attribute_enums.hh:26
blender::bke::AttrType::Int32
@ Int32
Definition
BKE_attribute_enums.hh:27
blender::bke::AttrType::Bool
@ Bool
Definition
BKE_attribute_enums.hh:24
blender::bke::AttrType::Float4x4
@ Float4x4
Definition
BKE_attribute_enums.hh:32
blender::bke::AttrStorageType
AttrStorageType
Definition
BKE_attribute_enums.hh:16
blender::bke::AttrStorageType::Single
@ Single
Definition
BKE_attribute_enums.hh:20
blender::int8_t
signed char int8_t
Definition
BKE_text.h:76
blender::int16_t
signed short int16_t
Definition
BKE_text.h:77
lexit::String
@ String
Definition
types.hh:154
Quaternion
Definition
gpu_shader_math_quaternion.bsl.hh:9
blender::Curve
Definition
DNA_curve_types.h:213
Generated on
for Blender by
doxygen
1.18.0