Blender  V2.93
Classes | Functions
util_half.h File Reference
#include "util/util_math.h"
#include "util/util_types.h"

Go to the source code of this file.

Classes

class  half
 
struct  half4
 

Functions

ccl_device_inline void float4_store_half (half *h, float4 f, float scale)
 
ccl_device_inline float half_to_float (half h)
 
ccl_device_inline float4 half4_to_float4 (half4 h)
 
ccl_device_inline half float_to_half (float f)
 

Function Documentation

◆ float4_store_half()

ccl_device_inline void float4_store_half ( half h,
float4  f,
float  scale 
)

Definition at line 80 of file util_half.h.

References absolute(), Freestyle::Cast::cast(), max, min, result, x, and Z.

Referenced by kernel_film_convert_to_half_float().

◆ float_to_half()

ccl_device_inline half float_to_half ( float  f)

Definition at line 141 of file util_half.h.

References __float_as_uint().

◆ half4_to_float4()

ccl_device_inline float4 half4_to_float4 ( half4  h)

◆ half_to_float()

ccl_device_inline float half_to_float ( half  h)