Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacques Lucke <jacques@blender.org>2021-09-23 18:50:33 +0300
committerJacques Lucke <jacques@blender.org>2021-09-23 18:59:44 +0300
commit38af29df5c307517dfdd0803b7e00d979be7185d (patch)
tree67ea679dda4bfd8255e050c24e7671d713084371 /source/blender/blenkernel/BKE_attribute_access.hh
parent105115da9f601c53d87cdc038f795f00f56a3495 (diff)
Geometry Nodes: simplify looping over attributes in geometry set
This adds three new methods: * `InstancesComponent::foreach_reference_as_geometry(...)` * `GeometrySet::attribute_foreach(...)` * `GeometrySet::gather_attributes_for_propagation(...)` The goal is that these iteration primitives can be used in places where we use more specialized iterators currently. Differential Revision: https://developer.blender.org/D12613
Diffstat (limited to 'source/blender/blenkernel/BKE_attribute_access.hh')
-rw-r--r--source/blender/blenkernel/BKE_attribute_access.hh5
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/blenkernel/BKE_attribute_access.hh b/source/blender/blenkernel/BKE_attribute_access.hh
index 77db479f525..da3de2f08bd 100644
--- a/source/blender/blenkernel/BKE_attribute_access.hh
+++ b/source/blender/blenkernel/BKE_attribute_access.hh
@@ -122,6 +122,11 @@ struct AttributeMetaData {
}
};
+struct AttributeKind {
+ AttributeDomain domain;
+ CustomDataType data_type;
+};
+
/**
* Base class for the attribute initializer types described below.
*/