[Bf-blender-cvs] [8116372289b] virtual-array-attributes: cleanup

Jacques Lucke noreply at git.blender.org
Mon Apr 12 18:27:55 CEST 2021


Commit: 8116372289b3827d77ab1041189765320a538e5e
Author: Jacques Lucke
Date:   Sat Apr 10 18:43:06 2021 +0200
Branches: virtual-array-attributes
https://developer.blender.org/rB8116372289b3827d77ab1041189765320a538e5e

cleanup

===================================================================

M	source/blender/functions/intern/generic_virtual_array.cc

===================================================================

diff --git a/source/blender/functions/intern/generic_virtual_array.cc b/source/blender/functions/intern/generic_virtual_array.cc
index f1f3dcbee46..73e2d702a38 100644
--- a/source/blender/functions/intern/generic_virtual_array.cc
+++ b/source/blender/functions/intern/generic_virtual_array.cc
@@ -18,6 +18,10 @@
 
 namespace blender::fn {
 
+/* --------------------------------------------------------------------
+ * GVArray.
+ */
+
 void GVArray::materialize_to_uninitialized(const IndexMask mask, void *dst) const
 {
   for (const int64_t i : mask) {
@@ -53,6 +57,10 @@ void GVArray::get_single_impl(void *UNUSED(r_value)) const
   BLI_assert(false);
 }
 
+/* --------------------------------------------------------------------
+ * GVArray_For_GSpan.
+ */
+
 void GVArray_For_GSpan::get_impl(const int64_t index, void *r_value) const
 {
   type_->copy_to_initialized(POINTER_OFFSET(data_, element_size_ * index), r_value);
@@ -73,6 +81,10 @@ GSpan GVArray_For_GSpan::get_span_impl() const
   return GSpan(*type_, data_, size_);
 }
 
+/* --------------------------------------------------------------------
+ * GVMutableArray_For_GMutableSpan.
+ */
+
 void GVMutableArray_For_GMutableSpan::get_impl(const int64_t index, void *r_value) const
 {
   type_->copy_to_initialized(POINTER_OFFSET(data_, element_size_ * index), r_value);
@@ -109,6 +121,10 @@ GSpan GVMutableArray_For_GMutableSpan::get_span_impl() const
   return GSpan(*type_, data_, size_);
 }
 
+/* --------------------------------------------------------------------
+ * GVArray_For_SingleValueRef.
+ */
+
 void GVArray_For_SingleValueRef::get_impl(const int64_t UNUSED(index), void *r_value) const
 {
   type_->copy_to_initialized(value_, r_value);



More information about the Bf-blender-cvs mailing list