diff options
author | Jacques Lucke <jacques@blender.org> | 2021-09-23 18:50:33 +0300 |
---|---|---|
committer | Jacques Lucke <jacques@blender.org> | 2021-09-23 18:59:44 +0300 |
commit | 38af29df5c307517dfdd0803b7e00d979be7185d (patch) | |
tree | 67ea679dda4bfd8255e050c24e7671d713084371 /source/blender/blenkernel/BKE_attribute_access.hh | |
parent | 105115da9f601c53d87cdc038f795f00f56a3495 (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.hh | 5 |
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. */ |