26static_assert(
sizeof(
RGBE) == 4,
"RGBE expected to be exactly 4 bytes");
55#define RGBE_EXP_BIAS 15
56#define RGBE_MANTISSA_BITS 8
57#define RGBE_EXPONENT_BITS 5
58#define RGBE_MAX 65280.0f
85 rgbe.
r = uint8_t(rgb.
x);
86 rgbe.
g = uint8_t(rgb.
y);
87 rgbe.
b = uint8_t(rgb.
z);
98 const int e = rgbe.
e & 0x1Fu;
MINLINE float power_of_2(float f)
ATTR_WARN_UNUSED_RESULT const BMVert const BMEdge * e
ATTR_WARN_UNUSED_RESULT const BMVert * v
reduce_max(value.rgb)") DEFINE_VALUE("REDUCE(lhs
#define ccl_device_inline
#define RGBE_MANTISSA_BITS
#define ccl_device_inline_method
#define CCL_NAMESPACE_END
ccl_device_inline float or_mask(const float x, const uint y)
ccl_device_inline int floor_log2f(const float x)
ccl_device_inline float2 fabs(const float2 a)
CCL_NAMESPACE_BEGIN ccl_device_inline float3 zero_float3()
ccl_device_inline_method RGBE(const float f_)
ccl_device_inline float3 rgbe_to_rgb(const RGBE rgbe)
ccl_device RGBE rgb_to_rgbe(float3 rgb)