Blender V5.0
ramp_util.h File Reference
#include "util/math.h"
#include "util/types.h"

Go to the source code of this file.

Functions

CCL_NAMESPACE_BEGIN ccl_device_inline float3 rgb_ramp_lookup (const float3 *ramp, float f, bool interpolate, bool extrapolate, const int table_size)
ccl_device float float_ramp_lookup (const float *ramp, float f, bool interpolate, bool extrapolate, const int table_size)

Function Documentation

◆ float_ramp_lookup()

ccl_device float float_ramp_lookup ( const float * ramp,
float f,
bool interpolate,
bool extrapolate,
const int table_size )

Definition at line 47 of file ramp_util.h.

References ccl_device, clamp(), float, float_to_int(), i, and result.

◆ rgb_ramp_lookup()

CCL_NAMESPACE_BEGIN ccl_device_inline float3 rgb_ramp_lookup ( const float3 * ramp,
float f,
bool interpolate,
bool extrapolate,
const int table_size )

Definition at line 14 of file ramp_util.h.

References ccl_device_inline, clamp(), float, float_to_int(), i, and result.