Blender V4.3
lcg.h File Reference
#include "util/hash.h"

Go to the source code of this file.

Functions

template<class T >
CCL_NAMESPACE_BEGIN ccl_device uint lcg_step_uint (T rng)
 
template<class T >
ccl_device float lcg_step_float (T rng)
 
ccl_device uint lcg_init (uint seed)
 
ccl_device_inline uint lcg_state_init (const uint rng_hash, const uint rng_offset, const uint sample, const uint scramble)
 

Function Documentation

◆ lcg_init()

ccl_device uint lcg_init ( uint seed)

Definition at line 29 of file lcg.h.

References lcg_step_uint(), and seed.

◆ lcg_state_init()

ccl_device_inline uint lcg_state_init ( const uint rng_hash,
const uint rng_offset,
const uint sample,
const uint scramble )

Definition at line 36 of file lcg.h.

References hash_uint3(), and sample.

Referenced by integrate_surface().

◆ lcg_step_float()

template<class T >
ccl_device float lcg_step_float ( T rng)

Definition at line 22 of file lcg.h.

References float.

Referenced by bsdf_hair_huang_eval_residual(), bsdf_hair_huang_sample(), and lights_intersect_impl().

◆ lcg_step_uint()

template<class T >
CCL_NAMESPACE_BEGIN ccl_device uint lcg_step_uint ( T rng)