5#ifndef __BLENDER_ATTRIBUTE_CONVERT_H__
6#define __BLENDER_ATTRIBUTE_CONVERT_H__
25 static constexpr auto type_desc = TypeFloat;
33 static constexpr auto type_desc = TypeFloat;
49 static constexpr auto type_desc = TypeVector;
60 return make_float4(value[0], value[1], value[2], value[3]);
76 static constexpr auto type_desc = TypeFloat;
84 static constexpr auto type_desc = TypeFloat;
92 static constexpr auto type_desc = TypeFloat4;
95 return make_float4(value.w, value.x, value.y, value.z);
#define CCL_NAMESPACE_END
draw_view in_light_buf[] float
draw_view push_constant(Type::INT, "radiance_src") .push_constant(Type capture_info_buf storage_buf(1, Qualifier::READ, "ObjectBounds", "bounds_buf[]") .push_constant(Type draw_view int
static constexpr TypeDesc TypeRGBA(TypeDesc::FLOAT, TypeDesc::VEC4, TypeDesc::COLOR)
CCL_NAMESPACE_BEGIN static OIIO_NAMESPACE_USING constexpr TypeDesc TypeFloat2(TypeDesc::FLOAT, TypeDesc::VEC2)
static CyclesT convert(const blender::ColorGeometry4b &value)
static CyclesT convert(const blender::ColorGeometry4f &value)
static CyclesT convert(const blender::float2 &value)
static CyclesT convert(const blender::float3 &value)
static CyclesT convert(const blender::math::Quaternion &value)
static CyclesT convert(const bool &value)
static CyclesT convert(const float &value)
static CyclesT convert(const int8_t &value)
static CyclesT convert(const int &value)
ccl_device float4 color_srgb_to_linear_v4(float4 c)
ccl_device float byte_to_float(uchar val)