Blender V5.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)
template<class T>
ccl_device float3 lcg_step_float3 (T rng)
ccl_device uint lcg_init (const 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 ( const uint seed)

Definition at line 38 of file lcg.h.

References ccl_device, lcg_init(), and lcg_step_uint().

Referenced by lcg_init().

◆ lcg_state_init()

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

◆ lcg_step_float()

◆ lcg_step_float3()

template<class T>
ccl_device float3 lcg_step_float3 ( T rng)

◆ lcg_step_uint()

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

Definition at line 14 of file lcg.h.

References ccl_device, lcg_step_uint(), and T.

Referenced by kernel_embree_filter_occluded_local_func_impl(), lcg_init(), and lcg_step_uint().