|
Blender
V2.93
|
Go to the source code of this file.
Macros | |
| #define | CMJ_RANDOM_OFFSET_LIMIT 4096 |
Functions | |
| ccl_device_inline bool | cmj_is_pow2 (int i) |
| ccl_device_inline int | cmj_fast_mod_pow2 (int a, int b) |
| ccl_device_inline int | cmj_fast_div_pow2 (int a, int b) |
| ccl_device_inline uint | cmj_w_mask (uint w) |
| ccl_device_inline uint | cmj_permute (uint i, uint l, uint p) |
| 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 float | pmj_sample_1D (KernelGlobals *kg, int sample, int rng_hash, int dimension) |
| ccl_device float2 | pmj_sample_2D (KernelGlobals *kg, int sample, int rng_hash, int dimension) |
| #define CMJ_RANDOM_OFFSET_LIMIT 4096 |
Definition at line 25 of file kernel_jitter.h.
| ccl_device_inline int cmj_fast_div_pow2 | ( | int | a, |
| int | b | ||
| ) |
Definition at line 38 of file kernel_jitter.h.
References Freestyle::a, count_trailing_zeros(), and kernel_assert.
| ccl_device_inline int cmj_fast_mod_pow2 | ( | int | a, |
| int | b | ||
| ) |
Definition at line 32 of file kernel_jitter.h.
References Freestyle::a.
| ccl_device_inline uint cmj_hash | ( | uint | i, |
| uint | p | ||
| ) |
Definition at line 106 of file kernel_jitter.h.
Referenced by cmj_randfloat(), and subsurface_random_walk().
| ccl_device_inline uint cmj_hash_simple | ( | uint | i, |
| uint | p | ||
| ) |
Definition at line 122 of file kernel_jitter.h.
Referenced by path_rng_1D(), path_state_rng_1D_hash(), pmj_sample_1D(), and pmj_sample_2D().
| ccl_device_inline bool cmj_is_pow2 | ( | int | i | ) |
Definition at line 27 of file kernel_jitter.h.
| ccl_device_inline uint cmj_permute | ( | uint | i, |
| uint | l, | ||
| uint | p | ||
| ) |
Definition at line 50 of file kernel_jitter.h.
References cmj_w_mask(), l, and w().
| ccl_device_inline float cmj_randfloat | ( | uint | i, |
| uint | p | ||
| ) |
Definition at line 131 of file kernel_jitter.h.
References cmj_hash().
Referenced by pmj_sample_1D(), and pmj_sample_2D().
| ccl_device_inline uint cmj_w_mask | ( | uint | w | ) |
Definition at line 44 of file kernel_jitter.h.
References count_leading_zeros(), kernel_assert, and w().
Referenced by cmj_permute().
| ccl_device float pmj_sample_1D | ( | KernelGlobals * | kg, |
| int | sample, | ||
| int | rng_hash, | ||
| int | dimension | ||
| ) |
Definition at line 198 of file kernel_jitter.h.
References __uint_as_float(), cmj_hash_simple(), cmj_randfloat(), kernel_tex_fetch, mask(), NUM_PMJ_PATTERNS, NUM_PMJ_SAMPLES, and blender::compositor::sample().
Referenced by path_rng_1D().
| ccl_device float2 pmj_sample_2D | ( | KernelGlobals * | kg, |
| int | sample, | ||
| int | rng_hash, | ||
| int | dimension | ||
| ) |
Definition at line 212 of file kernel_jitter.h.
References __uint_as_float(), cmj_hash_simple(), cmj_randfloat(), kernel_tex_fetch, make_float2, NUM_PMJ_PATTERNS, NUM_PMJ_SAMPLES, and blender::compositor::sample().
Referenced by path_rng_2D().