[Bf-blender-cvs] [2be7226e86c] functions: new rgba_b attribute type
Jacques Lucke
noreply at git.blender.org
Fri Aug 2 19:14:52 CEST 2019
Commit: 2be7226e86ce61b7a87d72d6d9be4d8f1e151e6b
Author: Jacques Lucke
Date: Fri Aug 2 13:21:12 2019 +0200
Branches: functions
https://developer.blender.org/rB2be7226e86ce61b7a87d72d6d9be4d8f1e151e6b
new rgba_b attribute type
===================================================================
M source/blender/simulations/bparticles/attributes.hpp
===================================================================
diff --git a/source/blender/simulations/bparticles/attributes.hpp b/source/blender/simulations/bparticles/attributes.hpp
index 9fb5b89ca63..a6d22853a6c 100644
--- a/source/blender/simulations/bparticles/attributes.hpp
+++ b/source/blender/simulations/bparticles/attributes.hpp
@@ -19,6 +19,7 @@ using BLI::float2;
using BLI::float3;
using BLI::Optional;
using BLI::Range;
+using BLI::rgba_b;
using BLI::rgba_f;
using BLI::SetVector;
using BLI::StringRef;
@@ -35,6 +36,7 @@ enum AttributeType {
Float,
Float2,
Float3,
+ RGBA_b,
RGBA_f,
};
@@ -51,6 +53,7 @@ ATTRIBUTE_TYPE_BY_TYPE(int32_t, Integer);
ATTRIBUTE_TYPE_BY_TYPE(float, Float);
ATTRIBUTE_TYPE_BY_TYPE(float2, Float2);
ATTRIBUTE_TYPE_BY_TYPE(float3, Float3);
+ATTRIBUTE_TYPE_BY_TYPE(rgba_b, RGBA_b);
ATTRIBUTE_TYPE_BY_TYPE(rgba_f, RGBA_f);
#undef ATTRIBUTE_TYPE_BY_TYPE
@@ -73,6 +76,8 @@ inline uint size_of_attribute_type(AttributeType type)
return sizeof(float2);
case AttributeType::Float3:
return sizeof(float3);
+ case AttributeType::RGBA_b:
+ return sizeof(rgba_b);
case AttributeType::RGBA_f:
return sizeof(rgba_f);
};
More information about the Bf-blender-cvs
mailing list