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;
103 result.x =
or_mask(result.x, (uint(rgbe.e) & 0x80u) << 24);
104 result.y =
or_mask(result.y, (uint(rgbe.e) & 0x40u) << 25);
105 result.z =
or_mask(result.z, (uint(rgbe.e) & 0x20u) << 26);
#define ccl_device_inline
#define RGBE_MANTISSA_BITS
#define ccl_device_inline_method
#define CCL_NAMESPACE_END
float reduce_max(float2 a)
ccl_device_inline float or_mask(const float x, const uint y)
ccl_device_inline int power_of_2(const int a)
ccl_device_inline dual3 fabs(const ccl_private dual3 &a)
ccl_device_inline int floor_log2f(const float x)
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)