68 return make_float4(value[0], value[1], value[2], value[3]);
78 return make_float4(value[0], value[1], value[2], value[3]);
123template<
typename BlenderT>
133 using CyclesT =
typename Converter::CyclesT;
136 if constexpr (Converter::layout_compatible) {
148 for (
const int i : src.index_range()) {
149 data[i] = Converter::convert(src[i]);
156template<
typename BlenderT>
159 const int motion_step,
166 using CyclesT =
typename Converter::CyclesT;
169 if constexpr (Converter::layout_compatible) {
181 for (
const int i : src.index_range()) {
182 data[i] = Converter::convert(src[i]);
bool sync_attribute_from_blender(AttributeSet &attributes, const AttributeStandard std, const blender::bke::AttributeReader< BlenderT > &b_reader, const int size)
bool sync_attribute_motion_step_from_blender(Attribute &attr, const int motion_step, const blender::bke::AttributeReader< BlenderT > &b_reader)
static DBVT_INLINE btScalar size(const btDbvtVolume &a)
Attribute * add(ustring name, const TypeDesc type, AttributeElement element)
Attribute * add_shared(ustring name, const TypeDesc type, AttributeElement element, const void *data, int size, ImplicitSharingInfo sharing_info)
T * data_for_write(const int step=0)
void set_motion_step_shared(int step, const void *data, int new_size, ImplicitSharingInfo sharing_info)
ccl_device float4 color_srgb_to_linear_v4(const float4 c)
#define CCL_NAMESPACE_END
ccl_device_inline float byte_to_float(const uchar val)
QuaternionBase< float > Quaternion
VecBase< float, 4 > float4
VecBase< float, 2 > float2
ColorSceneLinear4f< eAlpha::Premultiplied > ColorGeometry4f
VecBase< float, 3 > float3
ColorSceneLinearByteEncoded4b< eAlpha::Premultiplied > ColorGeometry4b
KERNEL_FEATURE_LIGHT_PASSES KERNEL_FEATURE_PATH_GUIDING float
static constexpr bool layout_compatible
static CyclesT convert(const blender::ColorGeometry4b &value)
static constexpr auto type_desc
static CyclesT convert(const blender::ColorGeometry4f &value)
static constexpr auto type_desc
static constexpr bool layout_compatible
static CyclesT convert(const blender::float2 &value)
static constexpr bool layout_compatible
static constexpr auto type_desc
static constexpr auto type_desc
static constexpr bool layout_compatible
static CyclesT convert(const blender::float3 &value)
static constexpr bool layout_compatible
static constexpr auto type_desc
static CyclesT convert(const blender::float4 &value)
static constexpr auto type_desc
static constexpr bool layout_compatible
static CyclesT convert(const blender::math::Quaternion &value)
static constexpr auto type_desc
static constexpr bool layout_compatible
static CyclesT convert(const bool &value)
static constexpr bool layout_compatible
static CyclesT convert(const float &value)
static constexpr auto type_desc
static CyclesT convert(const int8_t &value)
static constexpr auto type_desc
static constexpr bool layout_compatible
static constexpr bool layout_compatible
static constexpr auto type_desc
static CyclesT convert(const int &value)
const ImplicitSharingInfo * sharing_info
ccl_device_inline Quaternion make_quaternion(const float w, const float x, const float y, const float z)