Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/BKE_attribute_access.hh
| Show All 18 Lines | |||||
| #include <mutex> | #include <mutex> | ||||
| #include "FN_cpp_type.hh" | #include "FN_cpp_type.hh" | ||||
| #include "FN_spans.hh" | #include "FN_spans.hh" | ||||
| #include "BKE_attribute.h" | #include "BKE_attribute.h" | ||||
| #include "BLI_color.hh" | #include "BLI_color.hh" | ||||
| #include "BLI_float2.hh" | |||||
| #include "BLI_float3.hh" | #include "BLI_float3.hh" | ||||
| namespace blender::bke { | namespace blender::bke { | ||||
| using fn::CPPType; | using fn::CPPType; | ||||
| const CPPType *custom_data_type_to_cpp_type(const CustomDataType type); | const CPPType *custom_data_type_to_cpp_type(const CustomDataType type); | ||||
| CustomDataType cpp_type_to_custom_data_type(const CPPType &type); | CustomDataType cpp_type_to_custom_data_type(const CPPType &type); | ||||
| ▲ Show 20 Lines • Show All 261 Lines • ▼ Show 20 Lines | public: | ||||
| void apply_span() | void apply_span() | ||||
| { | { | ||||
| attribute_->apply_span(); | attribute_->apply_span(); | ||||
| } | } | ||||
| }; | }; | ||||
| using BooleanReadAttribute = TypedReadAttribute<bool>; | using BooleanReadAttribute = TypedReadAttribute<bool>; | ||||
| using FloatReadAttribute = TypedReadAttribute<float>; | using FloatReadAttribute = TypedReadAttribute<float>; | ||||
| using Float2ReadAttribute = TypedReadAttribute<float2>; | |||||
| using Float3ReadAttribute = TypedReadAttribute<float3>; | using Float3ReadAttribute = TypedReadAttribute<float3>; | ||||
| using Int32ReadAttribute = TypedReadAttribute<int>; | using Int32ReadAttribute = TypedReadAttribute<int>; | ||||
| using Color4fReadAttribute = TypedReadAttribute<Color4f>; | using Color4fReadAttribute = TypedReadAttribute<Color4f>; | ||||
| using BooleanWriteAttribute = TypedWriteAttribute<bool>; | using BooleanWriteAttribute = TypedWriteAttribute<bool>; | ||||
| using FloatWriteAttribute = TypedWriteAttribute<float>; | using FloatWriteAttribute = TypedWriteAttribute<float>; | ||||
| using Float2WriteAttribute = TypedWriteAttribute<float2>; | |||||
| using Float3WriteAttribute = TypedWriteAttribute<float3>; | using Float3WriteAttribute = TypedWriteAttribute<float3>; | ||||
| using Int32WriteAttribute = TypedWriteAttribute<int>; | using Int32WriteAttribute = TypedWriteAttribute<int>; | ||||
| using Color4fWriteAttribute = TypedWriteAttribute<Color4f>; | using Color4fWriteAttribute = TypedWriteAttribute<Color4f>; | ||||
| } // namespace blender::bke | } // namespace blender::bke | ||||