Blender
V3.3
|
Go to the source code of this file.
Functions | |
CCL_NAMESPACE_BEGIN ccl_device_inline uint32_t | laine_karras_permutation (uint32_t x, uint32_t seed) |
ccl_device_inline uint32_t | nested_uniform_scramble (uint32_t x, uint32_t seed) |
ccl_device_inline uint | cmj_hash (uint i, uint p) |
ccl_device_inline uint | cmj_hash_simple (uint i, uint p) |
ccl_device_inline float | cmj_randfloat (uint i, uint p) |
ccl_device_inline float | cmj_randfloat_simple (uint i, uint p) |
ccl_device_inline float | cmj_randfloat_simple_dist (uint i, uint p, float d) |
ccl_device float | pmj_sample_1D (KernelGlobals kg, uint sample, uint rng_hash, uint dimension) |
ccl_device void | pmj_sample_2D (KernelGlobals kg, uint sample, uint rng_hash, uint dimension, ccl_private float *x, ccl_private float *y) |
ccl_device_inline uint cmj_hash | ( | uint | i, |
uint | p | ||
) |
Definition at line 27 of file kernel/sample/jitter.h.
Referenced by cmj_randfloat(), pmj_sample_1D(), pmj_sample_2D(), and subsurface_random_walk().
ccl_device_inline uint cmj_hash_simple | ( | uint | i, |
uint | p | ||
) |
Definition at line 43 of file kernel/sample/jitter.h.
Referenced by cmj_randfloat_simple(), cmj_randfloat_simple_dist(), path_rng_1D(), path_state_rng_1D_hash(), pmj_sample_1D(), and pmj_sample_2D().
ccl_device_inline float cmj_randfloat | ( | uint | i, |
uint | p | ||
) |
Definition at line 52 of file kernel/sample/jitter.h.
References cmj_hash().
Referenced by pmj_sample_1D(), and pmj_sample_2D().
ccl_device_inline float cmj_randfloat_simple | ( | uint | i, |
uint | p | ||
) |
Definition at line 57 of file kernel/sample/jitter.h.
References cmj_hash_simple(), and float().
Referenced by pmj_sample_1D(), and pmj_sample_2D().
ccl_device_inline float cmj_randfloat_simple_dist | ( | uint | i, |
uint | p, | ||
float | d | ||
) |
Definition at line 62 of file kernel/sample/jitter.h.
References cmj_hash_simple(), and float().
Referenced by pmj_sample_1D(), and pmj_sample_2D().
CCL_NAMESPACE_BEGIN ccl_device_inline uint32_t laine_karras_permutation | ( | uint32_t | x, |
uint32_t | seed | ||
) |
Definition at line 7 of file kernel/sample/jitter.h.
Referenced by nested_uniform_scramble().
ccl_device_inline uint32_t nested_uniform_scramble | ( | uint32_t | x, |
uint32_t | seed | ||
) |
Definition at line 18 of file kernel/sample/jitter.h.
References laine_karras_permutation(), reverse_integer_bits(), seed, and x.
Referenced by pmj_sample_1D(), and pmj_sample_2D().
ccl_device float pmj_sample_1D | ( | KernelGlobals | kg, |
uint | sample, | ||
uint | rng_hash, | ||
uint | dimension | ||
) |
Definition at line 67 of file kernel/sample/jitter.h.
References cmj_hash(), cmj_hash_simple(), cmj_randfloat(), cmj_randfloat_simple(), cmj_randfloat_simple_dist(), floorf, hash, kernel_data, kernel_data_fetch, nested_uniform_scramble(), NUM_PMJ_PATTERNS, NUM_PMJ_SAMPLES, and sample.
Referenced by path_rng_1D().
ccl_device void pmj_sample_2D | ( | KernelGlobals | kg, |
uint | sample, | ||
uint | rng_hash, | ||
uint | dimension, | ||
ccl_private float * | x, | ||
ccl_private float * | y | ||
) |
Definition at line 119 of file kernel/sample/jitter.h.
References cmj_hash(), cmj_hash_simple(), cmj_randfloat(), cmj_randfloat_simple(), cmj_randfloat_simple_dist(), floorf, hash, kernel_data, kernel_data_fetch, nested_uniform_scramble(), NUM_PMJ_PATTERNS, NUM_PMJ_SAMPLES, sample, sx, and sy.
Referenced by path_rng_2D().